Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWildcardListener ¶
func AddWildcardListener(handler HandlerFunc)
Types ¶
type Bus ¶
type Bus interface { Dispatch(msg Msg) error Publish(msg Msg) error AddHandler(handler HandlerFunc) AddEventListener(handler HandlerFunc) AddWildcardListener(handler HandlerFunc) }
type HandlerFunc ¶
type HandlerFunc interface{}
type InProcBus ¶
type InProcBus struct {
// contains filtered or unexported fields
}
func (*InProcBus) AddEventListener ¶
func (b *InProcBus) AddEventListener(handler HandlerFunc)
func (*InProcBus) AddHandler ¶
func (b *InProcBus) AddHandler(handler HandlerFunc)
func (*InProcBus) AddWildcardListener ¶
func (b *InProcBus) AddWildcardListener(handler HandlerFunc)
type Msg ¶
type Msg interface{}
Click to show internal directories.
Click to hide internal directories.