server

package
v0.0.0-...-ff4b6db Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(opts Opts, logger log.Logger)

ListenAndServe initialises a http server and starts listening for http requests.

Types

type Opts

type Opts struct {
	ListenAddress string
	MetricsPath   string

	BeanstalkdAddress       string
	BeanstalkdSystemMetrics []string
	BeanstalkdAllTubes      bool
	BeanstalkdTubes         []string
	BeanstalkdTubeMetrics   []string
}

Opts contains the options for configuring the http server.

Jump to

Keyboard shortcuts

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