Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AsyncEvent ¶
type AsyncEvent interface {
Async() bool
}
type Manager ¶
type Manager interface { Publisher Listener Call(evt interface{}, listener interface{}) Start(ctx context.Context) <-chan interface{} }
func NewEventManager ¶
NewEventManager create a eventManager
type MemoryEventStore ¶
type MemoryEventStore struct {
// contains filtered or unexported fields
}
MemoryEventStore is a event store for sync operations
func (*MemoryEventStore) Listen ¶
func (eventStore *MemoryEventStore) Listen(evtType string, listener interface{})
Listen add a listener to a event
func (*MemoryEventStore) Publish ¶
func (eventStore *MemoryEventStore) Publish(evt Event) error
Publish an event
func (*MemoryEventStore) SetManager ¶
func (eventStore *MemoryEventStore) SetManager(manager Manager)
SetManager event manager
func (*MemoryEventStore) Start ¶
func (eventStore *MemoryEventStore) Start(ctx context.Context) <-chan interface{}
Click to show internal directories.
Click to hide internal directories.