routes

package
v0.0.0-...-6c8f44f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(routes []Route) *mux.Router

NewRouter Returns new router

Types

type Route

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

Route is the config struct for api routing

Jump to

Keyboard shortcuts

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