Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorServiceClosed = errors.New("error service closed")
View Source
var EventQueueIsEmpty = errors.New("event queue is empty")
View Source
var SlowEventHandler = errors.New("event handler is very slow; some messages are lost")
Functions ¶
func New ¶
func New(options *Options) contracts.EventHandlerInterface
Types ¶
type ErrorHandlerMock ¶
type EventHandler ¶
type EventHandler struct { contracts.EventHandlerInterface // contains filtered or unexported fields }
func (*EventHandler) New ¶
func (eh *EventHandler) New(level contracts.Level, eventMessage string, extra map[string]interface{})
func (*EventHandler) Run ¶
func (eh *EventHandler) Run() error
Click to show internal directories.
Click to hide internal directories.