api

package
v0.0.0-...-fe9eb67 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2015 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(r *htr.Router, apis ...API) error

func WriteResponse

func WriteResponse(w http.ResponseWriter, values ...interface{})

Types

type API

type API func(*htr.Router) error

API defines how a new API will be attached to the router. api packages should export a function such as:

func Auth(d db.DB) API {
	return func(r *htr.Router) {
		r.GET("/user/auth", handleAuth(d))
	}
}

func Auth

func Auth(d db.DB) API

func Task

func Task(d db.DB) API

func User

func User(d db.DB) API

TODO: Fixme!

Jump to

Keyboard shortcuts

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