Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beat ¶
type Beat struct { Name string Version string Config *BeatConfig BT Beater Publisher *publisher.PublisherType Events publisher.Client }
Basic beat information
func (*Beat) CommandLineSetup ¶
func (beat *Beat) CommandLineSetup()
Reads and parses the default command line params To set additional cmd line args use the beat.CmdLine type before calling the function
func (*Beat) LoadConfig ¶
func (b *Beat) LoadConfig()
LoadConfig inits the config file and reads the default config information into Beat.Config. It exists the processes in case of errors.
type BeatConfig ¶
type BeatConfig struct { Output map[string]outputs.MothershipConfig Logging logp.Logging Shipper publisher.ShipperConfig }
Basic configuration of every beat
type Beater ¶
type Beater interface { Config(*Beat) error Setup(*Beat) error Run(*Beat) error Cleanup(*Beat) error Stop() }
Beater interface that every beat must use
type FlagsHandler ¶
type FlagsHandler interface {
HandleFlags(*Beat)
}
FlagsHandler (optional) Beater extension for handling flags input on startup. The HandleFlags callback will be called after parsing the command line arguments and handling the '--help' or '--version' flags.
Click to show internal directories.
Click to hide internal directories.