router

package
v0.0.0-...-afd247e Latest Latest
Warning

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

Go to latest
Published: Mar 18, 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 {
	Path    string
	Method  string
	Roles   []int
	Handler echo.HandlerFunc
}

type Router

type Router interface {
	Add(*Route)
	Routes() []*Route
	Register(*echo.Echo)
	Match(string, string) (*Route, error)
}

func New

func New() Router

Jump to

Keyboard shortcuts

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