router

package
v0.0.0-...-7e82e9c Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureHandler

func ConfigureHandler(inner http.Handler, route Route) http.Handler

ConfigureHandler enhances a handler function with ServeHTTP

func ConfigureRouter

func ConfigureRouter() *mux.Router

ConfigureRouter provides a route-configured *mux.Router object

Types

type Route

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

Route is container template for server routes

Jump to

Keyboard shortcuts

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