server

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MPL-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug          bool
	Cluster        *serverCfg.ClusterConfig
	MetricProvider *serverCfg.MetricProviderConfig
	Server         *serverCfg.Config
	TLS            *serverCfg.TLSConfig
	Telemetry      *serverCfg.TelemetryConfig
}

type HTTPServer

type HTTPServer struct {
	http.Server
	// contains filtered or unexported fields
}

func New

func New(l zerolog.Logger, cfg *Config) *HTTPServer

func (*HTTPServer) Start

func (h *HTTPServer) Start() error

func (*HTTPServer) Stop

func (h *HTTPServer) Stop() error

Stop is used to synchronise the shutdown of background tasks before the server exits.

Directories

Path Synopsis
endpoints
v1

Jump to

Keyboard shortcuts

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