util

package
v6.2.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Event beat.Event
	// contains filtered or unexported fields
}

func NewData

func NewData() *Data

func (*Data) GetEvent

func (d *Data) GetEvent() beat.Event

GetEvent returns the event in the data object In case meta data contains module and fileset data, the event is enriched with it

func (*Data) GetMetadata

func (d *Data) GetMetadata() common.MapStr

GetMetadata creates a common.MapStr containing the metadata to be associated with the event.

func (*Data) GetState

func (d *Data) GetState() file.State

GetState returns the current state

func (*Data) HasEvent

func (d *Data) HasEvent() bool

HasEvent returns true if the data object contains event data

func (*Data) HasState

func (d *Data) HasState() bool

HasState returns true if the data object contains state data

func (*Data) SetState

func (d *Data) SetState(state file.State)

SetState sets the state

Jump to

Keyboard shortcuts

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