Documentation ¶
Index ¶
Constants ¶
View Source
const ( DeviceCount health.Stat = "DeviceCount" TotalWRPRequestResponseProcessed health.Stat = "TotalWRPRequestResponseProcessed" TotalPingMessagesReceived health.Stat = "TotalPingMessagesReceived" TotalPongMessagesReceived health.Stat = "TotalPongMessagesReceived" TotalConnectionEvents health.Stat = "TotalConnectionEvents" TotalDisconnectionEvents health.Stat = "TotalDisconnectionEvents" )
Variables ¶
View Source
var Options = []health.Option{ DeviceCount, TotalWRPRequestResponseProcessed, TotalPingMessagesReceived, TotalPongMessagesReceived, TotalConnectionEvents, TotalDisconnectionEvents, }
Options is an array of all the health Options exposed via this package
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
Dispatcher health.Dispatcher
}
Listener provides a device.Listener that dispatches health statistics
func (*Listener) OnDeviceEvent ¶
OnDeviceEvent is a device.Listener that will dispatched health events to the configured health Dispatcher.
Click to show internal directories.
Click to hide internal directories.