server

package
v0.0.0-...-b446b8c Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultPort is the port which the CEN HTTP server is listening in on
	DefaultPort = 8080

	// EndpointCENReport is the name of the HTTP endpoint for GET/POST of CENReport
	EndpointCENReport = "cenreport"

	// EndpointCENKeys is the name of the HTTP endpoint for GET CenKeys
	EndpointCENKeys = "cenkeys"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Handler  http.Handler
	HTTPPort uint16
	// contains filtered or unexported fields
}

Server manages HTTP connections

func NewServer

func NewServer(httpPort uint16, connString string) (s *Server, err error)

NewServer returns an HTTP Server to handle simple-api-process-flow https://github.com/Co-Epi/data-models/blob/master/simple-api-process-flow.md

func (*Server) Start

func (s *Server) Start() (err error)

Start kicks off the HTTP Server

Jump to

Keyboard shortcuts

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