Documentation ¶
Index ¶
Constants ¶
View Source
const (
SessionId = "sessionId"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuth ¶
func NewAuth(conf *config.ServerConfig) *Auth
func (*Auth) Authenticate ¶
Authenticate 认证, a. 通过session获取用户信息 b. todo: 通过用户token认证
type Context ¶
func (*Context) CreateAudit ¶
func (c *Context) CreateAudit(ao *types.AuditOperate)
CreateAudit 审计操作入库
Click to show internal directories.
Click to hide internal directories.