package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: May 21, 2020
License: BSD-3-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const UserConfigTemplate = "{\"ver\": 0, \"users\": {}}"
type UserConfig struct {
Ver int `json:"ver"`
Users map[string]*UserInfo `json:"users"`
}
UserConfig 用户配置文件结构
type UserInfo struct {
Password string `json:"password"`
Expired string `json:"expired"`
MaxRate int `json:"max_rate"`
MaxConnection int `json:"mac_connection"`
CurrentConnection int `json:"current_connection"`
}
UserInfo 用户信息结构
Source Files
¶
Click to show internal directories.
Click to hide internal directories.