.
This commit is contained in:
parent
c11d0b94de
commit
162392f60b
|
@ -50,7 +50,7 @@ func TestSend(t *testing.T) {
|
|||
}))
|
||||
defer ts.Close()
|
||||
for i := 0; i < 10; i++ {
|
||||
e := events.NewEvent(events.CENTRAL_EVENT, events.InstallEvent{Message: "Test"})
|
||||
e := events.NewEvent(events.CENTRAL_EVENT, events.CollectorInstallEvent{Message: "Test"})
|
||||
Send(e)
|
||||
t.Log(e.GetResult())
|
||||
}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package events
|
||||
|
||||
type InstallEvent struct {
|
||||
type CollectorInstallEvent struct {
|
||||
Message string
|
||||
}
|
||||
|
||||
func (i InstallEvent) GetUrl() string {
|
||||
func (i CollectorInstallEvent) GetUrl() string {
|
||||
return COLLECTOR_INSTALL
|
||||
}
|
||||
|
||||
func NewInstallEvent(message string) *InstallEvent {
|
||||
return &InstallEvent{Message: message}
|
||||
func NewInstallEvent(message string) *CollectorInstallEvent {
|
||||
return &CollectorInstallEvent{Message: message}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user