util

package
v6.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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