permission

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(v bool) (string, bool)

func Permission

func Permission(v bool) (string, bool)

func Required

func Required(roles ...string) (string, []string)

Types

type Checker

type Checker struct {
	ioc.ObjectImpl
	// contains filtered or unexported fields
}

func (*Checker) Check

func (c *Checker) Check(r *restful.Request, w *restful.Response, next *restful.FilterChain)

func (*Checker) CheckPolicy

func (c *Checker) CheckPolicy(r *restful.Request, tk *token.Token, route *endpoint.RouteEntry) error

func (*Checker) CheckToken

func (c *Checker) CheckToken(r *restful.Request) (*token.Token, error)

func (*Checker) Init

func (c *Checker) Init() error

func (*Checker) Name

func (c *Checker) Name() string

func (*Checker) Priority

func (c *Checker) Priority() int

Jump to

Keyboard shortcuts

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