server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Health

func Health(w http.ResponseWriter, r *http.Request)

Health endpoint for health monitoring

Types

type Equipment

type Equipment struct {
	Provider   string
	ProviderID int
	GlobalId   string
	Name       string
	Type       int
	State      int
	LocationID int
}

Equipment holds the global equipment definition

type Server

type Server struct {
	Router     *mux.Router
	ListenPort string
	LogLevel   string
	LogFile    string
}

Server holds the gomotics app definition

func (*Server) Initialize

func (s *Server) Initialize()

Initialize initialize the server also calls the internal in mem db

func (*Server) Run

func (s *Server) Run()

Run starts the server process

Jump to

Keyboard shortcuts

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