dispatcher

package
v0.0.0-...-ec21751 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	ConfigBlock map[string]interface{}
	// contains filtered or unexported fields
}

Dispatcher used to set required destination and parser

func CreateDispatcher

func CreateDispatcher(configBlock map[string]interface{}) *Dispatcher

func (*Dispatcher) Dispatch

func (d *Dispatcher) Dispatch(event interface{}, errChan chan error)

type Event

type Event struct {
	HostName        string
	OperatingSystem string
	Data            interface{}
	Timestamp       string
}

Jump to

Keyboard shortcuts

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