routes

package
v0.0.0-...-449281a Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	RouteStack []string
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder() *Builder

func (*Builder) Get

func (this *Builder) Get(path string, handler rest.HandlerFunc)

func (*Builder) Method

func (this *Builder) Method(methods []string, path string, handler rest.HandlerFunc)

func (*Builder) Namespace

func (this *Builder) Namespace(ns string, block func(*Builder))

func (*Builder) Post

func (this *Builder) Post(path string, handler rest.HandlerFunc)

func (*Builder) Routes

func (this *Builder) Routes() []*rest.Route

type Collector

type Collector struct {
	Routes []*rest.Route
}

func NewCollector

func NewCollector() *Collector

Jump to

Keyboard shortcuts

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