package
0.3.0
Repository: https://github.com/ccin2p3/go-collectd.git
Documentation: pkg.go.dev

# Functions

Dial connects to the collectd server at address.
ListenAndWrite listens on the provided UDP address, parses the received packets and writes them to the provided api.Writer.
NewAuthFile initializes and returns a new AuthFile.
NewBuffer initializes a new Buffer.
Parse parses the binary network format and returns a slice of ValueLists.

# Constants

Default size of "Buffer".
Well-known addresses and port.
Well-known addresses and port.
Well-known addresses and port.
Predefined security levels.
Predefined security levels.
Predefined security levels.

# Variables

ErrInvalid is returned when parsing the network data was aborted due to illegal data format.
ErrNotEnoughSpace is returned when adding a ValueList would exeed the buffer size.
ErrUnknownType is returned when attempting to write values of an unknown type.

# Structs

AuthFile implements the PasswordLookup interface in the same way the collectd network plugin implements it, i.e.
Buffer contains the binary representation of multiple ValueLists and state optimally write the next ValueList.
Client is a connection to a collectd server.
ClientOptions holds configuration options for Client.
ParseOpts holds confiruation options for "Parse()".
Server holds parameters for running a collectd server.

# Interfaces

PasswordLookup is used when parsing signed and encrypted network traffic to look up the password associated with a given username.

# Type aliases

SecurityLevel determines whether data is signed, encrypted or used without any protection.