middleware

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Optional

func Optional(names ...string) route.Middleware

Optional tries authenticators and allows missing credentials.

func Permission

func Permission(checkers ...auth.PermissionChecker) route.Middleware

Permission checks current route permission id.

func PermissionInfo

func PermissionInfo(routes []*route.Route) []auth.PermissionInfo

PermissionInfo returns route permission snapshots.

func Use

func Use(names ...string) route.Middleware

Use enforces one of the named authenticators.

Types

This section is empty.

Jump to

Keyboard shortcuts

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