server

package
v0.0.0-...-464103a Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	// contains filtered or unexported fields
}

HTTPServer ...

func InitializeHTTPServer

func InitializeHTTPServer(l envconfig.Lookuper) (*HTTPServer, error)

InitializeHTTPServer ...

func NewHTTPServer

func NewHTTPServer(
	config *config.HTTPServerConfig,
	healthCheckHandler *healthcheck.Handler,
	httpServerConfigHandler *handler.HTTPServerConfigHandler,
) *HTTPServer

NewHTTPServer ... Create a new HTTPServer with the given configuration and request handlers.

New request handlers should be added here and in wire.go and registered in the router below.

func (*HTTPServer) ActivePort

func (s *HTTPServer) ActivePort() int

ActivePort ... Returns the port on which the server is actively listening. This is useful as the server is capable or using a randomly assigned port.

func (*HTTPServer) Shutdown

func (s *HTTPServer) Shutdown()

Shutdown ...

func (*HTTPServer) Start

func (s *HTTPServer) Start()

Start ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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