endpoint

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 7 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 {
	http.Server
	http.Handler
	// contains filtered or unexported fields
}

func New

func New(port int, handlers map[string]shared.Handle) *Server

New creates a new server

func (*Server) ListenAndServe

func (r *Server) ListenAndServe() error

ListenAndServe start http endpoint

func (*Server) Shutdown

func (r *Server) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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