diff --git a/communicate_test.go b/communicate_test.go index cc3ec4c..38d3d42 100644 --- a/communicate_test.go +++ b/communicate_test.go @@ -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()) } diff --git a/events/event_collector.go b/events/event_collector.go index aa73516..36df1ae 100644 --- a/events/event_collector.go +++ b/events/event_collector.go @@ -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} }