udp

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UDPInput

type UDPInput struct {
	helper.InputOperator
	// contains filtered or unexported fields
}

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

func (*UDPInput) Start

func (u *UDPInput) Start() error

Start will start listening for messages on a socket.

func (*UDPInput) Stop

func (u *UDPInput) Stop() error

Stop will stop listening for udp messages.

type UDPInputConfig

type UDPInputConfig struct {
	helper.InputConfig `yaml:",inline"`

	ListenAddress string `json:"listen_address,omitempty" yaml:"listen_address,omitempty"`
	AddLabels     bool   `json:"add_labels,omitempty" yaml:"add_labels,omitempty"`
}

UDPInputConfig is the configuration of a udp input operator.

func NewUDPInputConfig

func NewUDPInputConfig(operatorID string) *UDPInputConfig

NewUDPInputConfig creates a new UDP input config with default values

func (UDPInputConfig) Build

Build will build a udp input operator.

Jump to

Keyboard shortcuts

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