Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IApplication ¶
type IApplication interface { Bind(string, ServiceFunc, ...bool) Singleton(string, ServiceFunc) Make(string) interface{} Register(interface{}) InjectApp(interface{}) interface{} Name() string RegistEvent(interface{}) GetRoutesTree() interface{} GetRoutesGroup() interface{} GetEngine() *gin.Engine Use(...interface{}) NoRoute(...interface{}) }
app接口暴露给注入app的结构体
type IAuth ¶
type IAuth interface { Check() bool Guest() bool User() IUser ID() string Attempt(map[string]interface{}, ...bool) bool Validate(map[string]interface{}) bool Login(IUser, ...bool) Logout() SetUser(IUser) WithContext(*gin.Context) IAuth }
用户登录接口
type IHash ¶
type IHash interface { Check(string, string, ...string) bool Make(string, ...map[string]int) string }
加密接口
type IUser ¶
type IUser interface { Get(string) interface{} GetAuthIdentifierName() string GetAuthIdentifier() string GetAuthPassword() string GetRememberToken() string SetRememberToken(interface{}) GetRememberTokenName() string SetApiToken(interface{}) GetApiToken() string GetApiTokenName() string IsEmpty() bool }
用户接口
Click to show internal directories.
Click to hide internal directories.