httpserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// BuildVersion contains the version of the Orb build.
	BuildVersion string
)

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, serverReadHeaderTimeout time.Duration,
	pubSub pubSub, vct vct, db db, keyManager keyManager, 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