From a7a2d609546940813f5bb599ef2e6dcddf2eaf75 Mon Sep 17 00:00:00 2001 From: jackdaw Date: Mon, 28 Nov 2016 14:22:50 +0900 Subject: [PATCH] . --- events/event.go | 1 + events/event_service.go | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/events/event.go b/events/event.go index 13b805e..210157f 100644 --- a/events/event.go +++ b/events/event.go @@ -7,6 +7,7 @@ const ( const ( COLLECTOR_INSTALL = "http://localhost:8080/_api/collector/event/status/install" + SERVICE_END = "http://localhost:8080/_api/collector/event/service/status/end" ) type URLMaker interface { diff --git a/events/event_service.go b/events/event_service.go index b3adf69..11f7207 100644 --- a/events/event_service.go +++ b/events/event_service.go @@ -1 +1,13 @@ package events + +type ServiceEndEvent struct { + ServiceName string +} + +func (i ServiceEndEvent) GetUrl() string { + return SERVICE_END +} + +func NewServiceEndEvent(s string) *CollectorInstallEvent { + return &ServiceEndEvent{ServiceName: s} +}