Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler interface {
Process(ctx context.Context, event []*models.Event, resume bool) error
}
EventHandler processes new events by registered handlers
type Service ¶
type Service interface { RegisterEventHandler(name string, eh EventHandler) error StopAndWait() Start() }
func NewService ¶
func NewService(ctx context.Context, manager *managerparam.Manager, config eventhandlerconfig.Config) Service
Click to show internal directories.
Click to hide internal directories.