Versions in this module Expand all Collapse all v1 v1.4.1 May 10, 2026 Changes in this version + func ClearSession(c *gin.Context) + func GetLoginUser(c *gin.Context) string + func IsLogin(c *gin.Context) bool + func NewAPIHandler(g *gin.RouterGroup, a2 *APIv2Handler) + func SetLoginUser(c *gin.Context, userName string, maxAge int) error + func SetMaxAge(c *gin.Context) error + type APIHandler struct + type APIv2Handler struct + func NewAPIv2Handler(g *gin.RouterGroup) *APIv2Handler + func (a *APIv2Handler) ReloadTokens() + type ApiService struct + func (a *ApiService) AddToken(c *gin.Context) + func (a *ApiService) ChangePass(c *gin.Context) + func (a *ApiService) CheckChanges(c *gin.Context) + func (a *ApiService) DeleteToken(c *gin.Context) + func (a *ApiService) GetCheckOutbound(c *gin.Context) + func (a *ApiService) GetDb(c *gin.Context) + func (a *ApiService) GetKeypairs(c *gin.Context) + func (a *ApiService) GetLogs(c *gin.Context) + func (a *ApiService) GetOnlines(c *gin.Context) + func (a *ApiService) GetSettings(c *gin.Context) + func (a *ApiService) GetSingboxConfig(c *gin.Context) + func (a *ApiService) GetStats(c *gin.Context) + func (a *ApiService) GetStatus(c *gin.Context) + func (a *ApiService) GetTokens(c *gin.Context) + func (a *ApiService) GetUsers(c *gin.Context) + func (a *ApiService) ImportDb(c *gin.Context) + func (a *ApiService) LinkConvert(c *gin.Context) + func (a *ApiService) LoadData(c *gin.Context) + func (a *ApiService) LoadPartialData(c *gin.Context, objs []string) error + func (a *ApiService) LoadTokens() ([]byte, error) + func (a *ApiService) Login(c *gin.Context) + func (a *ApiService) Logout(c *gin.Context) + func (a *ApiService) RestartApp(c *gin.Context) + func (a *ApiService) RestartSb(c *gin.Context) + func (a *ApiService) Save(c *gin.Context, loginUser string) + func (a *ApiService) SubConvert(c *gin.Context) + type Msg struct + Msg string + Obj interface{} + Success bool + type TokenInMemory struct + Expiry int64 + Token string + Username string