server

package
v0.0.0-...-f79d00e Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyPairWithPin

func KeyPairWithPin() ([]byte, []byte, []byte, error)

KeyPairWithPin returns PEM encoded Certificate and Key along with an SKPI fingerprint of the public key.

Types

type HTTPServer

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

HTTPServer encapsulates a *http.Server

func NewHTTPServer

func NewHTTPServer(name string, config cfg.Server) (*HTTPServer, error)

NewHTTPServer creates a new HTTPServer object after checking that the configuration is valid

func (*HTTPServer) Shutdown

func (s *HTTPServer) Shutdown(wg *sync.WaitGroup, timeout time.Duration)

Shutdown HTTP(s) server gracefully

func (*HTTPServer) Start

func (s *HTTPServer) Start()

Start HTTP(s) server

type Transfer

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

Jump to

Keyboard shortcuts

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