api

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2016 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFeature added in v0.2.3

func AddFeature(r *http.Request, feature string)

func AddMessage

func AddMessage(r *http.Request, message string)

func Conn

func Conn() *bloomdb.BloomDatabase

func GetFeatures added in v0.2.3

func GetFeatures(r *http.Request) map[string]interface{}

func GetMessages

func GetMessages(r *http.Request) []string

func Render

func Render(w http.ResponseWriter, req *http.Request, status int, v interface{})

func StatsLogger added in v0.2.3

func StatsLogger() *log.Logger

Types

type ParamsError

type ParamsError struct {
	Name    string            `json:"name"`
	Message string            `json:"message"`
	Params  map[string]string `json:"parameters"`
}

func NewParamsError

func NewParamsError(message string, params map[string]string) ParamsError

func (ParamsError) Error

func (e ParamsError) Error() string

Jump to

Keyboard shortcuts

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