communicate/events/event_service.go

22 lines
377 B
Go
Raw Normal View History

2016-11-28 14:15:31 +09:00
package events
2016-11-28 14:22:50 +09:00
type ServiceEndEvent struct {
2016-11-28 17:33:28 +09:00
Zone int64
Host int64
Port uint16
2016-11-28 14:22:50 +09:00
ServiceName string
}
func (i ServiceEndEvent) GetUrl() string {
return SERVICE_END
}
2016-11-28 17:33:28 +09: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 14:22:50 +09:00
}