udpserver

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SharedUDPServer

type SharedUDPServer struct {
	// contains filtered or unexported fields
}

SharedUDPServer used for multi configs, such as using in JMX fetcher

func NewSharedUDPServer

func NewSharedUDPServer(context ilogtail.Context, format, addr, dispatchKey string, maxBufferSize int) (*SharedUDPServer, error)

func (*SharedUDPServer) IsRunning

func (s *SharedUDPServer) IsRunning() bool

func (*SharedUDPServer) RegisterCollectors

func (s *SharedUDPServer) RegisterCollectors(key string, collector ilogtail.Collector)

func (*SharedUDPServer) Start

func (s *SharedUDPServer) Start() error

func (*SharedUDPServer) Stop

func (s *SharedUDPServer) Stop() error

func (*SharedUDPServer) UnregisterCollectors

func (s *SharedUDPServer) UnregisterCollectors(key string)

type UDPServer

type UDPServer struct {
	Format        string
	Address       string
	MaxBufferSize int
	// contains filtered or unexported fields
}

func (*UDPServer) Description

func (u *UDPServer) Description() string

func (*UDPServer) Init

func (u *UDPServer) Init(context ilogtail.Context) (int, error)

func (*UDPServer) Start

func (u *UDPServer) Start(collector ilogtail.Collector) error

func (*UDPServer) Stop

func (u *UDPServer) Stop() error

Jump to

Keyboard shortcuts

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