context

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPHandler

func HTTPHandler(handler Handler, ctx *RouteContext) httprouter.Handle

Types

type Handler

type Handler func(http.ResponseWriter, *http.Request, httprouter.Params, *RouteContext) (route string, status int)

type RouteContext

type RouteContext struct {
	Store  database.Datastore
	Config *config.APIConfig
}

Jump to

Keyboard shortcuts

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