event

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL