udpserver

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 11 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 pipeline.Context, decoder, 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 pipeline.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 {
	Decoder       string
	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 pipeline.Context) (int, error)

func (*UDPServer) Start

func (u *UDPServer) Start(collector pipeline.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