Documentation
¶
Index ¶
- Constants
- Variables
- type ConfigDB
- func (d *ConfigDB) Close()
- func (d *ConfigDB) GetHttpApiConfig() (cfg HttpApiConfig, err error)
- func (d *ConfigDB) GetTcpApiConfig() (cfg TcpApiConfig, err error)
- func (d *ConfigDB) GetUserInfo() (info UserInfo, err error)
- func (d *ConfigDB) UpdateHttpApiConfig(cfg HttpApiConfig) error
- func (d *ConfigDB) UpdateTcpApiConfig(cfg TcpApiConfig) error
- func (d *ConfigDB) UpdateUserInfo(info UserInfo) error
- type HttpApiConfig
- type TcpApiConfig
- type UserInfo
Constants ¶
View Source
const ( DefaultBufferSize = 1024 DefaultHTTPTimeout = 10 * time.Second DefaultTCPTimeout = 10 * time.Second )
Variables ¶
View Source
var ( DefaultTCPServer string DefaultHTTPServer string )
Functions ¶
This section is empty.
Types ¶
type ConfigDB ¶
type ConfigDB struct {
// contains filtered or unexported fields
}
func (*ConfigDB) GetHttpApiConfig ¶
func (d *ConfigDB) GetHttpApiConfig() (cfg HttpApiConfig, err error)
func (*ConfigDB) GetTcpApiConfig ¶
func (d *ConfigDB) GetTcpApiConfig() (cfg TcpApiConfig, err error)
func (*ConfigDB) GetUserInfo ¶
func (*ConfigDB) UpdateHttpApiConfig ¶
func (d *ConfigDB) UpdateHttpApiConfig(cfg HttpApiConfig) error
func (*ConfigDB) UpdateTcpApiConfig ¶
func (d *ConfigDB) UpdateTcpApiConfig(cfg TcpApiConfig) error
func (*ConfigDB) UpdateUserInfo ¶
type HttpApiConfig ¶
type TcpApiConfig ¶
Click to show internal directories.
Click to hide internal directories.