opentsdbhttp

package
v1.93.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 3

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 represents HTTP OpenTSDB server.

func MustServe

func MustServe(ln net.Listener, insertHandler func(r *http.Request) error) *Server

MustServe serves OpenTSDB HTTP put requests from ln.

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

func MustStart

func MustStart(addr string, useProxyProtocol bool, insertHandler func(r *http.Request) error) *Server

MustStart starts HTTP OpenTSDB server on the given addr.

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 HTTP OpenTSDB server.

func (*Server) Wait

func (s *Server) Wait()

Wait waits until the server is stopped with MustStop.

Jump to

Keyboard shortcuts

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