Documentation ¶
Index ¶
- Constants
- func GetCCCFGFile() string
- func GetCCCHomeDir() string
- func IsInitialized() bool
- func IsUserIdentifyReceived() bool
- func LoadUserIdentify()
- func SaveUserIdentify(sp *protocol.SignPack)
- type ChatClientConfig
- func (bc *ChatClientConfig) GetAjaxPath() string
- func (bc *ChatClientConfig) GetChatFriendPath() string
- func (bc *ChatClientConfig) GetChatGroupPath() string
- func (bc *ChatClientConfig) GetCmdUrl() string
- func (bc *ChatClientConfig) GetGrpKeysDbPath() string
- func (bc *ChatClientConfig) GetKeyPath() string
- func (bc *ChatClientConfig) GetMetaPath() string
- func (bc *ChatClientConfig) GetRegUrl() string
- func (bc *ChatClientConfig) GetUserFile() string
- func (bc *ChatClientConfig) InitCfg() *ChatClientConfig
- func (bc *ChatClientConfig) Load() *ChatClientConfig
- func (bc *ChatClientConfig) Save()
- type KeyJson
- type UserIdentify
Constants ¶
View Source
const ( CC_HomeDir = ".chatclient" CC_CFG_FileName = "chatclient.json" )
Variables ¶
This section is empty.
Functions ¶
func GetCCCFGFile ¶
func GetCCCFGFile() string
func GetCCCHomeDir ¶
func GetCCCHomeDir() string
func IsInitialized ¶
func IsInitialized() bool
func IsUserIdentifyReceived ¶
func IsUserIdentifyReceived() bool
func LoadUserIdentify ¶
func LoadUserIdentify()
func SaveUserIdentify ¶
Types ¶
type ChatClientConfig ¶
type ChatClientConfig struct { RemoteHttpPort int `json:"remotehttpport"` RemoteHttpServer string `json:"remotehttpserver"` CmdListenPort string `json:"cmdlistenport"` RemoteChatPort int `json:"chatport"` KeyFile string `json:"keyfile"` UserFile string `json:"userfile"` PrivKey ed25519.PrivateKey `json:"-"` PubKey ed25519.PublicKey `json:"-"` SP *protocol.SignPack `json:"-"` UpdateFriendTime int64 `json:"updatefriendtime"` ChatDataPath string `json:"chat_data_path"` ChatFriendPath string `json:"chat_friend_path"` ChatGroupPath string `json:"chat_group_path"` MetaDataPath string `json:"meta_data_path"` ChatGrpKeyPath string `json:"chat_grp_key_path"` LastFriendMsg int `json:"last_friend_msg"` }
func GetCCC ¶
func GetCCC() *ChatClientConfig
func LoadFromCfgFile ¶
func LoadFromCfgFile(file string) *ChatClientConfig
func LoadFromCmd ¶
func LoadFromCmd(initfromcmd func(cmdbc *ChatClientConfig) *ChatClientConfig) *ChatClientConfig
func PreLoad ¶
func PreLoad() *ChatClientConfig
func (*ChatClientConfig) GetAjaxPath ¶
func (bc *ChatClientConfig) GetAjaxPath() string
func (*ChatClientConfig) GetChatFriendPath ¶
func (bc *ChatClientConfig) GetChatFriendPath() string
func (*ChatClientConfig) GetChatGroupPath ¶
func (bc *ChatClientConfig) GetChatGroupPath() string
func (*ChatClientConfig) GetCmdUrl ¶
func (bc *ChatClientConfig) GetCmdUrl() string
func (*ChatClientConfig) GetGrpKeysDbPath ¶
func (bc *ChatClientConfig) GetGrpKeysDbPath() string
func (*ChatClientConfig) GetKeyPath ¶
func (bc *ChatClientConfig) GetKeyPath() string
func (*ChatClientConfig) GetMetaPath ¶
func (bc *ChatClientConfig) GetMetaPath() string
func (*ChatClientConfig) GetRegUrl ¶
func (bc *ChatClientConfig) GetRegUrl() string
func (*ChatClientConfig) GetUserFile ¶
func (bc *ChatClientConfig) GetUserFile() string
func (*ChatClientConfig) InitCfg ¶
func (bc *ChatClientConfig) InitCfg() *ChatClientConfig
func (*ChatClientConfig) Load ¶
func (bc *ChatClientConfig) Load() *ChatClientConfig
func (*ChatClientConfig) Save ¶
func (bc *ChatClientConfig) Save()
type UserIdentify ¶
Click to show internal directories.
Click to hide internal directories.