influx

package
v0.31.0-victorialogs Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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 InfluxDB line protocol over TCP and UDP.

func MustStart

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

MustStart starts InfluxDB 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