Documentation ¶
Overview ¶
Package config defines the system config. Include environment variables and yaml file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configer ¶
type Configer interface { GetMongDBURI() string GetMongDBName() string GetRedisURI() string GetRateLimte() float64 // RateLimte限制定义了某些事件的最大频率。 限制表示为每秒的事件数。 零限制不允许发生任何事件。 GetBurst() int }
Configer define some functions to obtain system built-in parameters.
func InitConfiger ¶
InitConfiger initialize system parameter configuration.
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
func (*Env) GetMongDBName ¶
func (*Env) GetMongDBURI ¶
func (*Env) GetRateLimte ¶
func (*Env) GetRedisURI ¶
type Yaml ¶
type Yaml struct{}
YamlImpl yaml
func (*Yaml) GetMongDBName ¶
func (*Yaml) GetMongDBURI ¶
func (*Yaml) GetRateLimte ¶
func (*Yaml) GetRedisURI ¶
Click to show internal directories.
Click to hide internal directories.