Setup

package
v0.0.0-...-7560bf5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetControllerMethods

func GetControllerMethods(controller Controller, panicOnZeroMethods bool) map[string]ControllerMethod

func RegisterRouters

func RegisterRouters(ctx *RouterContext, router *mux.Router, baseMiddleWare []http.HandlerFunc, routers []*Router)

Types

type Controller

type Controller interface{}

type ControllerMethod

type ControllerMethod func(w http.ResponseWriter, r *http.Request, ctx *RouterContext)

type NegroniHandlerFunc

type NegroniHandlerFunc func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)

type Router

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

type RouterBuilder

type RouterBuilder interface {
	SetController(controller Controller) RouterBuilder
	AddMiddlewares(middlewares ...http.HandlerFunc) RouterBuilder
	AddSubrouters(subRouters ...*Router) RouterBuilder
	Build() *Router
}

func NewRouterBuilder

func NewRouterBuilder(urlParts ...string) RouterBuilder

Jump to

Keyboard shortcuts

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