http

package
v0.0.0-...-8938f7c Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeviceRoutes

func DeviceRoutes(store store.Store, parent logging.Logger) routing.Matcher

func InternalRoutes

func InternalRoutes(parent logging.Logger) routing.Matcher

func SendError

func SendError(logger logging.Logger, err *HTTPError) routing.Matcher

func TotalsRoutes

func TotalsRoutes(store store.Store, parent logging.Logger) routing.Matcher

Types

type HTTPError

type HTTPError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Details string `json:"details,omitempty"`
}

func BadRequest

func BadRequest() *HTTPError

func MethodNotAllowed

func MethodNotAllowed() *HTTPError

func NotFound

func NotFound() *HTTPError

func Unauthorized

func Unauthorized() *HTTPError

func (*HTTPError) Error

func (err *HTTPError) Error() string

type HealthVO

type HealthVO struct {
	MaxProcs     int
	NumGoroutine int
	Memory       runtime.MemStats
}

type Server

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

func NewServer

func NewServer(config *config.ServerConfig, store store.Store, parent logging.Logger) *Server

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop()

type StatusVO

type StatusVO struct {
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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