Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultMaxBufferSize is the max buffer sized used // if MaxBufferSize is not set DefaultMaxBufferSize = 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCPInput ¶
type TCPInput struct { helper.InputOperator // contains filtered or unexported fields }
TCPInput is an operator that listens for log entries over tcp.
type TCPInputConfig ¶
type TCPInputConfig struct { helper.InputConfig `yaml:",inline"` MaxBufferSize helper.ByteSize `json:"max_buffer_size,omitempty" yaml:"max_buffer_size,omitempty"` ListenAddress string `json:"listen_address,omitempty" yaml:"listen_address,omitempty"` TLS *helper.TLSServerConfig `json:"tls,omitempty" yaml:"tls,omitempty"` }
TCPInputConfig is the configuration of a tcp input operator.
func NewTCPInputConfig ¶
func NewTCPInputConfig(operatorID string) *TCPInputConfig
NewTCPInputConfig creates a new TCP input config with default values
func (TCPInputConfig) Build ¶
func (c TCPInputConfig) Build(context operator.BuildContext) ([]operator.Operator, error)
Build will build a tcp input operator.
Click to show internal directories.
Click to hide internal directories.