rest

package
v0.0.0-...-ae11625 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendJsonErrorResponse

func SendJsonErrorResponse(w http.ResponseWriter, response interface{}, err string)

func SendJsonResponse

func SendJsonResponse(w http.ResponseWriter, response interface{}, err error)

func SetupStatRouter

func SetupStatRouter(pool db.DBPool, prefix string, writeToFile bool, middleware RestMiddleware) *pat.PatternServeMux

func SetupTaskRouter

func SetupTaskRouter(pool db.DBPool, prefix string, writeToFile bool, middleware RestMiddleware) *pat.PatternServeMux

Types

type Response

type Response map[string]interface{}

type RestMiddleware

type RestMiddleware func(http.HandlerFunc, ...func(http.HandlerFunc) http.HandlerFunc) http.HandlerFunc

type StatServices

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

func NewStatServices

func NewStatServices(statAPI *api.StatAPI) *StatServices

func SetupStats

func SetupStats(pool db.DBPool) *StatServices

type TaskServices

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

func NewTaskServices

func NewTaskServices(taskAPI *api.TaskAPI) *TaskServices

func SetupTasks

func SetupTasks(pool db.DBPool) *TaskServices

Jump to

Keyboard shortcuts

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