Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bus ¶
type Bus interface { Subscribe(topic Topic, fn BusHandler) error Unsubscribe(topic Topic, handler BusHandler) error Publish(topic Topic, arg interface{}) }
type BusHandler ¶
type BusHandler func(arg interface{})
type NullBus ¶
type NullBus struct{}
func (NullBus) Unsubscribe ¶
func (NullBus) Unsubscribe(topic Topic, handler BusHandler) error
Click to show internal directories.
Click to hide internal directories.