handler

package
v0.0.0-...-bf7a25e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAccountSecret

func AddAccountSecret(ctx *gin.Context)

AddAccountSecret 新增账号密钥

func AddServer

func AddServer(ctx *gin.Context)

func AddServerIpList

func AddServerIpList(ctx *gin.Context)

func EditBase

func EditBase(ctx *gin.Context)

func GenAccessToken

func GenAccessToken(c *gin.Context)

GenAccessToken 生成AccessToken serverSign 服务标识,添加服务时指定的标识 timeToken AES(KEY+IV, UNIX时间戳)

func GetAccountSecret

func GetAccountSecret(ctx *gin.Context)

GetAccountSecret 获取密钥信息

func GetServer

func GetServer(ctx *gin.Context)

func GetServerIpList

func GetServerIpList(ctx *gin.Context)

func Health

func Health(c *gin.Context)

func PagingAccountSecret

func PagingAccountSecret(ctx *gin.Context)

func PagingServer

func PagingServer(ctx *gin.Context)

func RemoveServerIpList

func RemoveServerIpList(ctx *gin.Context)

func SetSecretEnable

func SetSecretEnable(ctx *gin.Context)

func SetServerEnable

func SetServerEnable(ctx *gin.Context)

func ValidCode

func ValidCode(ctx *gin.Context)

func VerifyAccessToken

func VerifyAccessToken(c *gin.Context)

VerifyAccessToken 验证Token

func VerifyTimeToken

func VerifyTimeToken(c *gin.Context, timeToken string, m *model.ServerModel) bool

VerifyTimeToken 验证客户端时间token

Types

This section is empty.

Jump to

Keyboard shortcuts

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