receiver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileReader

func FileReader(
	ctx context.Context,
	path string,
	sendChannels *[]chan parser.Metric,
)

FileReader loads from file

func Prometheus

func Prometheus(
	ctx context.Context,
	addr string,
	sendChannels *[]chan parser.Metric,
)

Prometheus http endpoint for Remote Write

func RawUDPServer

func RawUDPServer(
	ctx context.Context,
	address string,
	sendChannels *[]chan parser.Metric,
)

RawUDPServer binds to a port and listens to udp packets TODO filter by port currectly

func TCPServer

func TCPServer(
	ctx context.Context,
	addr string,
	sendChannels *[]chan parser.Metric,
)

TCPServer Create a tcp server on a given port TODO handle closed connections and EOF more gracefully

func UDPServer

func UDPServer(
	ctx context.Context,
	address string,
	sendChannels *[]chan parser.Metric,
)

UDPServer Create a udp server on a given port

Types

This section is empty.

Jump to

Keyboard shortcuts

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