Documentation ¶
Index ¶
- Variables
- type CacheCfg
- type Config
- type JsonConfig
- func (cfg *JsonConfig) ElasticUrl() string
- func (cfg *JsonConfig) LogLevel() string
- func (cfg *JsonConfig) Memcache() []string
- func (cfg *JsonConfig) RabbitPostExchange() string
- func (cfg *JsonConfig) RabbitPostType() string
- func (cfg *JsonConfig) RabbitQueue() string
- func (cfg *JsonConfig) RabbitServer() string
- func (cfg *JsonConfig) RedisAddres() string
- func (cfg *JsonConfig) RedisPassword() string
- func (cfg *JsonConfig) SymbolsPath() string
- func (cfg *JsonConfig) WebBlackListSignaturs() []string
- type LogCfg
- type RabbitCfg
- type RedisCfg
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalConfigPath string
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { SymbolsPath() string RabbitServer() string RabbitQueue() string RabbitPostExchange() string RabbitPostType() string ElasticUrl() string Memcache() []string RedisAddres() string RedisPassword() string LogLevel() string WebBlackListSignaturs() []string }
var GlobalConfig Config
type JsonConfig ¶
type JsonConfig struct { SymbolsPathName string `json:"symbols_pathname"` Rabbit *RabbitCfg `json:"rabbit_cfg"` Cache *CacheCfg `json:"cache"` Elastic string `json:"elastic"` Log *LogCfg `json:"log"` WebBListSignaturs []string `json:"web_blacklist_signaturs"` }
func (*JsonConfig) ElasticUrl ¶
func (cfg *JsonConfig) ElasticUrl() string
func (*JsonConfig) LogLevel ¶
func (cfg *JsonConfig) LogLevel() string
func (*JsonConfig) Memcache ¶
func (cfg *JsonConfig) Memcache() []string
func (*JsonConfig) RabbitPostExchange ¶
func (cfg *JsonConfig) RabbitPostExchange() string
func (*JsonConfig) RabbitPostType ¶
func (cfg *JsonConfig) RabbitPostType() string
func (*JsonConfig) RabbitQueue ¶
func (cfg *JsonConfig) RabbitQueue() string
func (*JsonConfig) RabbitServer ¶
func (cfg *JsonConfig) RabbitServer() string
func (*JsonConfig) RedisAddres ¶
func (cfg *JsonConfig) RedisAddres() string
func (*JsonConfig) RedisPassword ¶
func (cfg *JsonConfig) RedisPassword() string
func (*JsonConfig) SymbolsPath ¶
func (cfg *JsonConfig) SymbolsPath() string
func (*JsonConfig) WebBlackListSignaturs ¶
func (cfg *JsonConfig) WebBlackListSignaturs() []string
Click to show internal directories.
Click to hide internal directories.