router

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 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 Route

type Route struct {
	Method  string
	Path    string
	Handler http.HandlerFunc
}

type Router

type Router struct {
	*httprouter.Router
}

func New

func New() *Router

New returns `*Router` instance.

func (*Router) Add

func (r *Router) Add(routes []Route) *Router

Add registers application specific routes/endpoints.

Jump to

Keyboard shortcuts

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