middleware

package
v0.0.85-test Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deny

func Deny(c *models.ReqContext, evaluator accesscontrol.Evaluator, err error)

func Disable

func Disable(shouldDisable bool) web.Handler

Disable returns http 404 if shouldDisable is set to true

func LoadPermissionsMiddleware

func LoadPermissionsMiddleware(ac accesscontrol.AccessControl) web.Handler

func UseGlobalOrg

func UseGlobalOrg(c *models.ReqContext) (int64, error)

func UseOrgFromContextParams

func UseOrgFromContextParams(c *models.ReqContext) (int64, error)

Types

type OrgIDGetter

type OrgIDGetter func(c *models.ReqContext) (int64, error)

Jump to

Keyboard shortcuts

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