manager

package
v0.0.0-...-e64a635 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Manager = "Manager"
	Env     = "cfg_env"
	Server  = "cfg_server"
)

Variables

This section is empty.

Functions

func GetAuthInfo

func GetAuthInfo(ctx kratosx.Context) (*v1.AuthReply, error)

GetAuthInfo 获取实名认证信息

Types

type Permission

type Permission struct {
}

func NewPermission

func NewPermission() *Permission

func (*Permission) GetEnv

func (infra *Permission) GetEnv(ctx kratosx.Context) (bool, []uint32, error)

GetEnv 获取当前用户对于env的权限

func (*Permission) GetPermission

func (infra *Permission) GetPermission(ctx kratosx.Context, keyword string) (bool, []uint32, error)

GetPermission 获取当前用户,指定key的权限

func (*Permission) GetServer

func (infra *Permission) GetServer(ctx kratosx.Context) (bool, []uint32, error)

GetServer 获取当前用户是对于server的权限

func (*Permission) HasEnv

func (infra *Permission) HasEnv(ctx kratosx.Context, id uint32) bool

HasEnv 获取当前用户是否具有指定env的权限

func (*Permission) HasServer

func (infra *Permission) HasServer(ctx kratosx.Context, id uint32) bool

HasServer 获取当前用户是具有指定server的权限

Jump to

Keyboard shortcuts

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