service

package
v0.0.0-...-860ddd4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2016 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter() *mux.Router

NewRouter will return a new router with defined routes to functions

Types

type JSONError

type JSONError struct {
	Message string `json:"message"`
}

JSONError is a simple struct that is used to render properly a message in JSON

type MuxWrapper

type MuxWrapper struct {
	IsReady bool
	Router  *mux.Router
}

MuxWrapper is a struct that will wrap the router and the ready state

func (*MuxWrapper) ServeHTTP

func (httpWrapper *MuxWrapper) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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