Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandlerFunc ¶
func (EventHandlerFunc) HandleEvent ¶
func (f EventHandlerFunc) HandleEvent(db database.Database, e Event)
type EventRegistry ¶
type EventRegistry interface {
RegisterEventHandler(EventName, EventHandler)
PushEvent(Event)
Run(ctx context.Context)
}
func NewEventRegistry ¶
func NewEventRegistry(db database.Database) EventRegistry
Click to show internal directories.
Click to hide internal directories.