router

package
v0.0.0-...-265a0a8 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter() *mux.Router

NewRouter creates a new Router with mappings configured

Types

type Route

type Route struct {
	Name        string
	TypeLabel   string
	ActionLabel string
	Method      string
	Pattern     string
	HandlerFunc http.Handler
	Queries     []string
}

Route represents an API route/endpoint

type Routes

type Routes []Route

Routes is an array of Routes

Jump to

Keyboard shortcuts

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