Documentation ¶
Overview ¶
Package event implements an event dispatcher for incoming log events. It sends the messages to the registered matching event reader channels that have been registered for the event type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Emit ¶
func Emit(le model.ServerEvent)
Emit is used to send out events to and registered reader channels.
func RegisterConsumer ¶
func RegisterConsumer(r chan model.ServerEvent, msgTypes []logparse.MsgType) error
RegisterConsumer will register a channel to receive new log events as they come in
func UnregisterConsumer ¶
func UnregisterConsumer(r chan model.ServerEvent) error
UnregisterConsumer will remove the channel from any matching event readers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.