httpserver

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 13 Imported by: 2

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 implements an HTTP server.

func New

func New(url, certFile, keyFile string, serverIdleTimeout time.Duration, handlers ...common.HTTPHandler) *Server

New returns a new HTTP server.

func (*Server) Start

func (s *Server) Start() error

Start starts the HTTP server in a separate Go routine.

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop stops the REST service.

Directories

Path Synopsis
signature/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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