gorilla

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionName

func ActionName(route *mux.Route, actionName string)

ActionName registers a logjam action name for the given mux route. Requires a logjam compatible action name of the form (Module::)*Controller#action.

func PrintRoutes

func PrintRoutes(r *mux.Router)

PrintRoutes prints the routes and their logjam action names.

func SetupRoutes

func SetupRoutes(r *mux.Router)

SetupRoutes traverses all routes of the given router and replaces handlers which have no logjam action name attached yet with a new handler that uses an action name derived from the path template. It must be called after all routes have been set up on the router.

Types

This section is empty.

Jump to

Keyboard shortcuts

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