graphite

package
v1.97.0-cluster Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server accepts Graphite plaintext lines over TCP and UDP.

func MustStart

func MustStart(addr string, useProxyProtocol bool, insertHandler func(r io.Reader) error) *Server

MustStart starts graphite server on the given addr.

The incoming connections are processed with insertHandler.

If useProxyProtocol is set to true, then the incoming connections are accepted via proxy protocol. See https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt

MustStop must be called on the returned server when it is no longer needed.

func (*Server) MustStop

func (s *Server) MustStop()

MustStop stops the server.

Jump to

Keyboard shortcuts

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