httpserver

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 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 implements an HTTP server

func New

func New(url, certFile, keyFile, token string, 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

Jump to

Keyboard shortcuts

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