routes

package
v0.0.0-...-861a228 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootStrap

func BootStrap(routeMap Map) iris.Configurator

Types

type Map

type Map func(app *iris.Application) map[string]Route

type Route

type Route struct {
	Controller func(m *mvc.Application)
	Middleware []context.Handler
	Terminate  []context.Handler
}

func New

func New(controller func(m *mvc.Application)) Route

func (Route) WithMiddleware

func (r Route) WithMiddleware(middleware ...context.Handler) Route

func (Route) WithTerminate

func (r Route) WithTerminate(terminate ...context.Handler) Route

Jump to

Keyboard shortcuts

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