Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefault ¶
func SetDefault(m Mediator)
func Subscribe ¶
func Subscribe(hdl EventHandler)
Types ¶
type EventCollection ¶
func NewEventCollection ¶
func NewEventCollection() EventCollection
type EventHandler ¶
type InMemMediator ¶
type InMemMediator struct {
// contains filtered or unexported fields
}
func (*InMemMediator) Dispatch ¶
func (m *InMemMediator) Dispatch(ev Event)
func (*InMemMediator) Subscribe ¶
func (m *InMemMediator) Subscribe(hdl EventHandler)
func (*InMemMediator) WithOrphanEventHandler ¶
func (m *InMemMediator) WithOrphanEventHandler(fn func(Event))
type Mediator ¶
type Mediator interface { Dispatch(Event) Subscribe(EventHandler) }
func NewInMemMediator ¶
Click to show internal directories.
Click to hide internal directories.