Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 2 Imported by: 2

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