route

package
v0.0.0-...-3d20607 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(req *notrest.Request, resp *notrest.Response, rest []byte)

type Router

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

func (*Router) DELETE

func (r *Router) DELETE(path string, handler Handler)

func (*Router) GET

func (r *Router) GET(path string, handler Handler)

func (*Router) Handle

func (r *Router) Handle(req *notrest.Request, resp *notrest.Response)

func (*Router) Method

func (r *Router) Method(method string, path string, handler Handler)

func (*Router) MethodRaw

func (r *Router) MethodRaw(method string, prefix string, isAbsolute bool, handler Handler)

func (*Router) POST

func (r *Router) POST(path string, handler Handler)

func (*Router) PUT

func (r *Router) PUT(path string, handler Handler)

func (*Router) Prepare

func (r *Router) Prepare()

func (*Router) String

func (r *Router) String() string

Jump to

Keyboard shortcuts

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