Documentation ¶
Index ¶
- Constants
- type BaseConfig
- type Commander
- func (c *Commander) Done() <-chan struct{}
- func (c *Commander) ExitCode() int
- func (c *Commander) IsRunning() bool
- func (c *Commander) Pid() int
- func (c *Commander) Restart(ctx context.Context) error
- func (c *Commander) Start(ctx context.Context) error
- func (c *Commander) Stop(ctx context.Context) error
- type Config
- type Input
Constants ¶
View Source
const ( // DefaultMaxLogSize is the max buffer sized used // if MaxLogSize is not set DefaultMaxLogSize = 1024 * 1024 DefaultIntervalSeconds = 60 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseConfig ¶
type BaseConfig struct { ExecFile string `mapstructure:"exec_file,omitempty"` MaxLogSize helper.ByteSize `mapstructure:"max_log_size,omitempty"` AddAttributes bool `mapstructure:"add_attributes,omitempty"` Encoding helper.EncodingConfig `mapstructure:",squash,omitempty"` Multiline helper.MultilineConfig `mapstructure:"multiline,omitempty"` Source string `mapstructure:"source"` SourceType string `mapstructure:"sourcetype"` Interval string `mapstructure:"interval"` }
BaseConfig is the detailed configuration of a tcp input operator.
type Commander ¶
type Commander struct {
// contains filtered or unexported fields
}
Commander can start/stop/restat the Agent executable and also watch for a signal for the Agent process to finish.
func NewCommander ¶
func (*Commander) Done ¶
func (c *Commander) Done() <-chan struct{}
Done returns a channel that will send a signal when the Agent process is finished.
func (*Commander) ExitCode ¶
ExitCode returns Agent process exit code if it exited or 0 if it is not.
type Config ¶
type Config struct { helper.InputConfig `mapstructure:",squash"` BaseConfig `mapstructure:",squash"` }
Config is the configuration of a stdin input operator.
Click to show internal directories.
Click to hide internal directories.