Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServicePublished EventType = "service_published" ServiceUpdated = "service_updated" ServiceRemoved = "service_removed" )
events
View Source
const MaxPayloadBytes = 32 * 1024
MaxPayloadBytes is the maximum allowed size of a payload when serialized into JSON
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Listener ¶
type Listener struct { ServiceEvents <-chan ServiceEvent // contains filtered or unexported fields }
Listener ...
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher ...
func (*Publisher) SetPayload ¶
SetPayload ...
type Service ¶
type Service struct { Name string Payload map[string]interface{} // contains filtered or unexported fields }
Service ...
func (Service) IPv4 ¶
IPv4 returns the IPv4 address of the service publisher. If there is no v4 IP associated with the publisher, returns nil.
func (Service) IPv6 ¶
IPv6 returns the IPv6 address of the service publisher. If there is no v6 IP associated with the publisher, returns nil.
Click to show internal directories.
Click to hide internal directories.