routes

package
v0.0.0-...-d378361 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2017 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(m Mux)

Setup routes defined in this package

Types

type Mux

type Mux interface {
	Get(pattern string, handler http.HandlerFunc) error
	Post(pattern string, handler http.HandlerFunc) error
}

type Route

type Route struct {
	Name    string
	Pattern string
	Method  string
	Handler http.HandlerFunc
}

Helper struct for defining routes

Jump to

Keyboard shortcuts

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