beater

package
v5.0.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2016 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdLineArgs

type CmdLineArgs struct {
	File         *string
	Loop         *int
	OneAtAtime   *bool
	TopSpeed     *bool
	Dumpfile     *string
	PrintDevices *bool
	WaitShutdown *int
}

type Packetbeat

type Packetbeat struct {
	PbConfig    config.Config
	CmdLineArgs CmdLineArgs
	Pub         *publish.PacketbeatPublisher
	Sniff       *sniffer.SnifferSetup
	// contains filtered or unexported fields
}

Beater object. Contains all objects needed to run the beat

func New

func New() *Packetbeat

func (*Packetbeat) Cleanup

func (pb *Packetbeat) Cleanup(b *beat.Beat) error

func (*Packetbeat) Config

func (pb *Packetbeat) Config(b *beat.Beat) error

Loads the beat specific config and overwrites params based on cmd line

func (*Packetbeat) HandleFlags

func (pb *Packetbeat) HandleFlags(b *beat.Beat) error

Handle custom command line flags

func (*Packetbeat) Run

func (pb *Packetbeat) Run(b *beat.Beat) error

func (*Packetbeat) Setup

func (pb *Packetbeat) Setup(b *beat.Beat) error

Setup packetbeat

func (*Packetbeat) Stop

func (pb *Packetbeat) Stop()

Called by the Beat stop function

Jump to

Keyboard shortcuts

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