frontend

package
v0.0.0-...-63088e7 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionsFunc

type OptionsFunc func(*Server) error

OptionsFunc sets options when creating a new server.

func SetAddress

func SetAddress(address string) OptionsFunc

SetAddress sets the listening address.

func SetEndpoint

func SetEndpoint(address string) OptionsFunc

SetEndpoint sets the address for contacting other services.

type Server

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

Server is a wrapper for a simple front end HTTP server

func New

func New(options ...OptionsFunc) (*Server, error)

New creates a new server

func (*Server) Run

func (s *Server) Run() error

Run starts the HTTP server. This generally does not return.

func (*Server) Stop

func (s *Server) Stop()

Stop will stop the server

Jump to

Keyboard shortcuts

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