From 162392f60bea0460521cfb2f073c213e52788cf8 Mon Sep 17 00:00:00 2001 From: jackdaw Date: Mon, 28 Nov 2016 14:20:54 +0900 Subject: [PATCH] . --- communicate_test.go | 2 +- events/event_collector.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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} }