router

package
v0.0.0-...-2039734 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(h Handler) *mux.TreeMux

Types

type Handler

type Handler interface {
	Routes() []*Route
}

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc mux.HandlerFunc
}

Jump to

Keyboard shortcuts

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