Documentation ¶
Index ¶
Constants ¶
View Source
const (
// EventChallenge is issued before installation begins to gather information about how the device should be provisioned.
EventDiscoveryPassword pluggable.EventType = "discovery.password"
)
Variables ¶
View Source
var AllEvents = []pluggable.EventType{ EventDiscoveryPassword, }
AllEvents is a convenience list of all the events streamed from the bus.
View Source
var Manager = NewBus()
Manager is the bus instance manager, which subscribes plugins to events emitted.
Functions ¶
func EventError ¶
func EventError(err error) pluggable.EventResponse
func IsEventDefined ¶
func IsEventDefined(i interface{}) bool
IsEventDefined checks wether an event is defined in the bus. It accepts strings or EventType, returns a boolean indicating that the event was defined among the events emitted by the bus.
Types ¶
Click to show internal directories.
Click to hide internal directories.