relay

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relay

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

func NewRelay

func NewRelay(l log.Logger, target string, packetLength uint) (*Relay, error)

NewRelay creates a statsd UDP relay. It can be used to send copies of statsd raw lines to a separate service.

func (*Relay) RelayLine

func (r *Relay) RelayLine(l string)

RelayLine processes a single statsd line and forwards it to the relay target.

Jump to

Keyboard shortcuts

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