server

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 18 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 {
	APIPort   int
	AdminPort int

	TLSCertificate string
	TLSPrivateKey  string

	Mesh mesh.Mesh
	// contains filtered or unexported fields
}

Server provides the HTTP serving functionality

func (*Server) APIRouter

func (s *Server) APIRouter() (*chi.Mux, error)

APIRouter encapsulates all the routes required to serve the API

func (*Server) Listen

func (s *Server) Listen() error

Listen starts listening for incoming requests for the APIService and admin handlers

Jump to

Keyboard shortcuts

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