Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrRegisterMuxHandler = lerr.Str("handler argument to RegisterMuxHandler requires a func or a channel")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListenerSwitch ¶
type ListenerSwitch struct { *handler.Switch lerr.ErrHandler // contains filtered or unexported fields }
ListenerSwitch takes objects off a channel and passes them into the handlers for that type.
func (*ListenerSwitch) Run ¶
func (ls *ListenerSwitch) Run()
Run the ListenerSwitch. It will stop running when the channel is closed.
func (*ListenerSwitch) SetErrorHandler ¶
func (ls *ListenerSwitch) SetErrorHandler(i any) (err error)
func (*ListenerSwitch) SetIn ¶
func (ls *ListenerSwitch) SetIn(in <-chan interface{})
SetIn sets the interface channel the ListerMux is listening on.
Click to show internal directories.
Click to hide internal directories.