server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: NCSA Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(routes services.RouteCollection) *mux.Router

Types

type ArborServer

type ArborServer struct {
	// contains filtered or unexported fields
}

ArborServer is a struct that manages the proxy server

func NewArborServer

func NewArborServer(routes services.RouteCollection, addr string, port uint16) *ArborServer

NewServer creates a new Arbor Server

func StartSecuredServer

func StartSecuredServer(routes services.RouteCollection, addr string, port uint16) *ArborServer

StartSecuredServer starts a secured arbor server (Token required for access)

Provide a set of routes to serve and a port to serve on.

func StartUnsecuredServer

func StartUnsecuredServer(routes services.RouteCollection, addr string, port uint16) *ArborServer

StartUnsecuredServer starts an unsecured arbor server (Token required for access)

Provide a set of routes to server and a port to serve on/

func (*ArborServer) KillServer

func (a *ArborServer) KillServer()

KillServer ends the http server

func (*ArborServer) StartServer

func (a *ArborServer) StartServer()

StartServer starts the http server in a goroutine to start listening

type StatusResponseWriter

type StatusResponseWriter struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func (*StatusResponseWriter) WriteHeader

func (rec *StatusResponseWriter) WriteHeader(code int)

Jump to

Keyboard shortcuts

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