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} +}