opentsdbhttp

package
v0.0.0-...-7d8b796 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 9 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 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, insertHandler func(r *http.Request) error) *Server

MustStart starts HTTP OpenTSDB server on the given addr.

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