udp

package
v0.105.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// Maximum UDP packet size
	MaxUDPSize = 64 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncConfig added in v0.88.0

type AsyncConfig struct {
	Readers        int `mapstructure:"readers,omitempty"`
	Processors     int `mapstructure:"processors,omitempty"`
	MaxQueueLength int `mapstructure:"max_queue_length,omitempty"`
}

type BaseConfig added in v0.53.0

type BaseConfig struct {
	ListenAddress   string       `mapstructure:"listen_address,omitempty"`
	OneLogPerPacket bool         `mapstructure:"one_log_per_packet,omitempty"`
	AddAttributes   bool         `mapstructure:"add_attributes,omitempty"`
	Encoding        string       `mapstructure:"encoding,omitempty"`
	SplitConfig     split.Config `mapstructure:"multiline,omitempty"`
	TrimConfig      trim.Config  `mapstructure:",squash"`
	AsyncConfig     *AsyncConfig `mapstructure:"async,omitempty"`
}

BaseConfig is the details configuration of a udp input operator.

type Config added in v0.53.0

type Config struct {
	helper.InputConfig `mapstructure:",squash"`
	BaseConfig         `mapstructure:",squash"`
}

Config is the configuration of a udp input operator.

func NewConfig added in v0.53.0

func NewConfig() *Config

NewConfig creates a new UDP input config with default values

func NewConfigWithID added in v0.59.0

func NewConfigWithID(operatorID string) *Config

NewConfigWithID creates a new UDP input config with default values

func (Config) Build added in v0.53.0

Build will build a udp input operator.

type Input added in v0.53.0

type Input struct {
	helper.InputOperator

	OneLogPerPacket bool
	AsyncConfig     *AsyncConfig
	// contains filtered or unexported fields
}

Input is an operator that listens to a socket for log entries.

func (*Input) Start added in v0.53.0

func (i *Input) Start(_ operator.Persister) error

Start will start listening for messages on a socket.

func (*Input) Stop added in v0.53.0

func (i *Input) Stop() error

Stop will stop listening for udp messages.

Jump to

Keyboard shortcuts

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