communicate/events/event_service.go

22 lines
377 B
Go
Raw Permalink Normal View History

2016-11-28 05:15:31 +00:00
package events
2016-11-28 05:22:50 +00:00
type ServiceEndEvent struct {
2016-11-28 08:33:28 +00:00
Zone int64
Host int64
Port uint16
2016-11-28 05:22:50 +00:00
ServiceName string
}
func (i ServiceEndEvent) GetUrl() string {
return SERVICE_END
}
2016-11-28 08:33:28 +00:00
func NewServiceEndEvent(z int64, h int64, p uint16, s string) *ServiceEndEvent {
return &ServiceEndEvent{
Zone: z,
Host: h,
Port: p,
ServiceName: s,
}
2016-11-28 05:22:50 +00:00
}