authorization

package
v0.0.0-...-d9d5b18 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizeHandler

func AuthorizeHandler(options ...Option) func(next http.Handler) http.Handler

AuthorizeHandler check if user is authorize to access to resource.

Types

type Option

type Option func(creds credential.Credential) bool

Option type.

func HasRole

func HasRole(role string) Option

HasRole check if user has role.

Jump to

Keyboard shortcuts

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