Documentation
¶
Index ¶
Constants ¶
View Source
const ( RdsKeyVersion = "rdm_version" // hset no xx url xxx.com RdsKeyQaId = "rdm_aQaId" // inc [RdsKeyQaId] RdsKeyQa = "rdm_zQa" // zadd [RdsKeyQa] [inc RdsKeyQaId] [data.Qa] RdsKeyQaReply = "rdm_zQaReply" // zadd [RdsKeyQa] [inc RdsKeyQaId] [data.QaReply] )
View Source
const ( VERSION = 10 VERSION_STR = "0.0.1" )
Variables ¶
View Source
var ( ApiSyncConfig = ApiHost + "/Api/SyncConfig" ApiQaList = ApiHost + "/Api/QaList" ApiQaReplyList = ApiHost + "/Api/QaReplyList/%s" ApiQaAdd = ApiHost + "/Api/QaAdd" ApiQaReply = ApiHost + "/Api/QaReply" ApiUserLogin = ApiHost + "/Api/UserLogin" ApiUserRegister = ApiHost + "/Api/UserRegister" ApiUserPasswordReset = ApiHost + "/Api/UserPasswordReset" ApiChatHistory = ApiHost + "/Api/ChatHistory" ApiChatUsers = ApiHost + "/Api/Users" ApiVersion = ApiHost + "/Api/Version" ApiStatistic = ApiHost + "/Api/Statistic" )
View Source
var ApiHost = "http://47.96.235.53:9393"
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Email string // 用户名
Nickname string // 用户名
Token string // 加密key
Connections []RedisClient // redis链接
ApiUrl ApiUrl
UiConf UiConf
}
func (*Config) AppendRds ¶
func (conf *Config) AppendRds(rc ...RedisClient)
type RedisClient ¶
type RedisClient struct {
Client *redis.Client `json:"-"`
Addr string
Password string
DB int
Title string
}
{
"Username": "",
"Token": "",
"DefaultWindowSize": {
"Width": 1300,
"Height": 80
},
"Connections": [
{
"Addr": "",
"Password": "",
"DB": 0
}
],
"Theme": "dark",
"Document": "",
"Notice": ""
}
Click to show internal directories.
Click to hide internal directories.