httpserver

package
v2.0.0-...-31557ca Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(opts Opts, logger *slog.Logger) error

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

Types

type Opts

type Opts struct {
	ListenAddress string
	MetricsPath   string

	BeanstalkdAddress         string
	BeanstalkdDialTimeout     uint
	BeanstalkdKeepAlivePeriod uint
	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