shared

package
v0.0.0-...-27bcd03 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ContextKey = "CtxSvcKey"

CtxSrvKey 上下文变量存储键名

View Source
const (
	// SessionKeyUser 用户信息session存储键名
	SessionKeyUser = "SessionUserSvcKey"
)

Variables

View Source
var Ctx = new(ctxShared)

上下文管理服务

View Source
var Session = new(sessionShared)

会话管理服务

Functions

This section is empty.

Types

type Context

type Context struct {
	Session *ghttp.Session // session
	User    *CtxUser       // 上下文用户信息
}

Context 请求上下文结构

type CtxUser

type CtxUser struct {
	ID      string
	IsAdmin bool
	Roles   *garray.StrArray
}

CtxUser 上下文用户信息

Jump to

Keyboard shortcuts

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