Documentation ¶
Index ¶
- func AddAccountSecret(ctx *gin.Context)
- func AddServer(ctx *gin.Context)
- func AddServerIpList(ctx *gin.Context)
- func EditBase(ctx *gin.Context)
- func GenAccessToken(c *gin.Context)
- func GetAccountSecret(ctx *gin.Context)
- func GetQRCodeContent(ctx *gin.Context)
- func GetServer(ctx *gin.Context)
- func GetServerIpList(ctx *gin.Context)
- func Health(c *gin.Context)
- func Login(ctx *gin.Context)
- func Logout(ctx *gin.Context)
- func PagingAccountSecret(ctx *gin.Context)
- func PagingServer(ctx *gin.Context)
- func RemoveServerIpList(ctx *gin.Context)
- func SetSecretEnable(ctx *gin.Context)
- func SetServerEnable(ctx *gin.Context)
- func ValidCode(ctx *gin.Context)
- func VerifyAccessToken(c *gin.Context)
- func VerifyTimeToken(c *gin.Context, timeToken string, m *model.ServerModel) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddServerIpList ¶
func GenAccessToken ¶
GenAccessToken 生成AccessToken serverSign 服务标识,添加服务时指定的标识 timeToken AES(KEY+IV, UNIX时间戳)
func GetQRCodeContent ¶
GetQRCodeContent 获取添加密钥二维码内容 https://github.com/google/google-authenticator/wiki/Key-Uri-Format
func GetServerIpList ¶
func PagingAccountSecret ¶
func PagingServer ¶
func RemoveServerIpList ¶
func SetSecretEnable ¶
func SetServerEnable ¶
func VerifyTimeToken ¶
VerifyTimeToken 验证客户端时间token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.