server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2018 License: MIT Imports: 7 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 {
	*http.Server
	// contains filtered or unexported fields
}

Server is a simple wrapper around an embedded HTTP server with a logger and database.

func CreateServer

func CreateServer(cfg config.Config, db core.DB, logger core.Logger) (*Server, error)

CreateServer attempts to start a RESTful JSON HTTP service. If the server fails to start, an error is returned.

func (*Server) Close

func (srvr *Server) Close()

Close attempts to perform a clean shutdown of the server.

func (*Server) GetLatestExecution

func (srvr *Server) GetLatestExecution() func(http.ResponseWriter, *http.Request)

GetLatestExecution returns the latest monitor execution.

Jump to

Keyboard shortcuts

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