Documentation
¶
Index ¶
- func CreateClient() (clientUUID, token string, err error)
- func CreateClientWithName(name string) (clientUUID, token string, err error)
- func DeleteClient(clientUuid string) error
- func GetAllClientBasicInfo() (clients []models.Client, err error)
- func GetClientByUUID(uuid string) (client models.Client, err error)
- func GetClientTokenByUUID(uuid string) (token string, err error)
- func GetClientUUIDByToken(token string) (clientUUID string, err error)
- func HiddenClients() (map[string]bool, error)
- func ReportVerify(report v2.Report) error
- func SaveClient(updates map[string]interface{}) error
- func SaveClientInfo(update map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClientWithName ¶
func DeleteClient ¶
func GetAllClientBasicInfo ¶
func GetClientByUUID ¶
// GetAllClients 获取所有客户端配置
func getAllClients() (clients []models.Client, err error) {
db := dbcore.GetDBInstance()
err = db.Find(&clients).Error
if err != nil {
return nil, err
}
return clients, nil
}
func GetClientTokenByUUID ¶
func GetClientUUIDByToken ¶
func HiddenClients ¶ added in v0.1.13
HiddenClients returns an immutable snapshot. Successful client writes invalidate it immediately; only uuid/hidden are loaded, never tokens or hardware details.
func SaveClient ¶
func SaveClientInfo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.