server

package
v0.0.0-...-26eea9c Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBMiddleware

func DBMiddleware(session *mgo.Session, DBNAME string) negroni.Handler

func HandleSnapshots

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

func Launch

func Launch(dbSession *mgo.Session, DBNAME, PORT string)

func RespondWithError

func RespondWithError(w http.ResponseWriter, r *http.Request, err error, code int)

func ServeJSON

func ServeJSON(w http.ResponseWriter, r *http.Request, response *Response, code int)

Types

type Response

type Response map[string]interface{}

Jump to

Keyboard shortcuts

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