Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct { bus.Receiver bus.ListenerSwitcher // contains filtered or unexported fields }
func FromMux ¶
New creates a Listener from a Receiver and a ListenerSwitcher. It connects the Out channel on the Receiver to the In channel on the ListenerSwitcher. If ListenerSwitcher is nil, one will be created. If errHandler is not nil it will be set on both the Receiver and ListenerSwitcher.
func (*Listener) RegisterHandlers ¶
RegisterHandler with the underlying ListenerSwitcher and the argument to the handler is registered with the Receiver.
func (*Listener) SetErrorHandler ¶
SetErrorHandler on both the underlying ListenerSwitcher and Receiver.
Click to show internal directories.
Click to hide internal directories.