auth

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SameRequest = map[string]bool{}
View Source
var SameRequestLock = new(sync.RWMutex)

Functions

func PermissionCheck

func PermissionCheck(source *obj.Tree, appid uint64, op, query string, isRecheck bool) error

PermissionCheck 权限校验,appid 是否拥有对应的操作权限

func SignSuccess

func SignSuccess(head *proto.RequestHeader) bool

SignSuccess 签名是否正确

func TableVerify

func TableVerify(source *obj.Tree, appid uint64, tables []string, verifyRule string) error

TableVerify table verify

Types

This section is empty.

Jump to

Keyboard shortcuts

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