Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceChangedCallback ¶
type ServiceChangedCallback func(info api.ServiceInfo)
ServiceChangedCallback is type for callbacks a service change has been detected.
type ServiceListener ¶
type ServiceListener struct {
// contains filtered or unexported fields
}
ServiceListener is a service that listens for service registrations for a specific type of service.
func NewServiceListener ¶
func NewServiceListener(log zerolog.Logger, serviceType string, all bool, cb ServiceChangedCallback) *ServiceListener
NewServiceListener creates and initializes a ServiceListener. If all is false, only changes in service info are reported. If all is true, all service info messages are reported.
Click to show internal directories.
Click to hide internal directories.