server

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server holds entities that can be used to control the web server

func NewServer added in v0.7.0

func NewServer(address string, sdkRouter *sdkrouter.Router) *Server

NewServer returns a server initialized with settings from supplied options.

func (*Server) ServeUntilShutdown

func (s *Server) ServeUntilShutdown()

ServeUntilShutdown blocks until a shutdown signal is received, then shuts down the http server.

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown gracefully shuts down the peer server.

func (*Server) Start

func (s *Server) Start() error

Start starts a http server and returns immediately.

Jump to

Keyboard shortcuts

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