server

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server added in v0.4.4

type Server struct {
	ListenPort  string
	MetricsPath string
	Handler     http.Handler
}

Server contains the options to start a simple metrics server along with handler for the endpoint

func (*Server) Start added in v0.4.4

func (s *Server) Start() error

Start boots up the server that runs on the specified port. Returns an error if there is no connection established.

Jump to

Keyboard shortcuts

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