Documentation
¶
Overview ¶
* @Author: Wangjun * @Date: 2021-07-19 19:31:56 * @LastEditTime: 2023-07-20 13:38:58 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\autoroute\minauth\user.go * hnxr
Index ¶
- func CallbackNeedAuth(c *gin.Context) (ptr interface{}, err error)
- func Hash(s string) string
- func Init(defaultUser func() (user, passwd string))
- func RemoveByName(name string)
- func RemoveBySID(sid string)
- func Save() (err error)
- func SetAuthURL(url string)
- type Auth
- type Session
- type User
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallbackNeedAuth ¶
CallbackNeedAuth 需要认证回调函数, m gin.H 只要 header, cookie, param 参数中任何一个带有uid标识的均可通过验证
Types ¶
type Session ¶
type Session struct { Name string //名称 Alias string //别名 LoginTime int64 //登陆时间 LastTime int64 //最后访问时间 Image string //图像 ClientIP string //客户端地址 SID string //session ID }
Session ...
Click to show internal directories.
Click to hide internal directories.