.
This commit is contained in:
parent
162392f60b
commit
a7a2d60954
|
@ -7,6 +7,7 @@ const (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
COLLECTOR_INSTALL = "http://localhost:8080/_api/collector/event/status/install"
|
COLLECTOR_INSTALL = "http://localhost:8080/_api/collector/event/status/install"
|
||||||
|
SERVICE_END = "http://localhost:8080/_api/collector/event/service/status/end"
|
||||||
)
|
)
|
||||||
|
|
||||||
type URLMaker interface {
|
type URLMaker interface {
|
||||||
|
|
|
@ -1 +1,13 @@
|
||||||
package events
|
package events
|
||||||
|
|
||||||
|
type ServiceEndEvent struct {
|
||||||
|
ServiceName string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i ServiceEndEvent) GetUrl() string {
|
||||||
|
return SERVICE_END
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewServiceEndEvent(s string) *CollectorInstallEvent {
|
||||||
|
return &ServiceEndEvent{ServiceName: s}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user