authz

package
v0.0.0-...-ac58375 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionFromMethod

func ActionFromMethod(r *http.Request) string

func Middleware

func Middleware(a Authorizer) func(http.Handler) http.Handler

Types

type Authorizer

type Authorizer interface {
	HasPermission(userID, action, resource string) bool
}

Jump to

Keyboard shortcuts

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