event

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutEvent

func PutEvent(e *ProcessorEvent)

PutEvent put event back to pool

Types

type ProcessorEvent

type ProcessorEvent struct {
	Source       string
	Destination  string
	LogId        string
	AppId        []byte
	Level        []byte
	Time         time.Time
	Body         []byte
	Priority     string
	Length       int
	TimeRangeKey string
	Fields       map[string]interface{}
	ParsedFields map[string]string
	Tags         []string
}

event between input and processor

func GetEvent

func GetEvent() (e *ProcessorEvent)

GetEvent get event from pool.

func (*ProcessorEvent) Bytes

func (e *ProcessorEvent) Bytes() []byte

func (*ProcessorEvent) String

func (e *ProcessorEvent) String() string

func (*ProcessorEvent) Write

func (e *ProcessorEvent) Write(b []byte)

Jump to

Keyboard shortcuts

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