Documentation
¶
Index ¶
- Variables
- type Configuration
- func (c Configuration) GetActive() string
- func (c Configuration) GetDomain() string
- func (c Configuration) GetEs() []string
- func (c Configuration) GetMysql() map[string]IMysql
- func (c Configuration) GetPort() string
- func (c Configuration) GetRedis() IRedis
- func (c Configuration) GetScheme() string
- func (c Configuration) GetSock() string
- func (c Configuration) GetSwaggerPort() string
- func (c Configuration) GetSwaggerUrl() string
- func (c Configuration) GetTimezone() string
- func (c Configuration) GetUrl() string
- type ConfigurationReadOnly
- type IMinio
- type IMysql
- type IRedis
- type IRedisCluster
- type ISqlite
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = CovertConfiguration()
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Active string `yaml:"active"`
Domain string `yaml:"domain"`
Port string `yaml:"port"`
Scheme string `yaml:"scheme"`
Sock string `yaml:"sock"`
Timezone string `yaml:"timezone"`
SwaggerPort string `yaml:"swagger.port"`
Es string `yaml:"es"`
Mysql string `yaml:"mysql"`
Redis string `yaml:"redis"`
}
func CovertConfiguration ¶
func CovertConfiguration() *Configuration
CovertConfiguration struct tag 指定为属性值,方便操作
func (Configuration) GetActive ¶
func (c Configuration) GetActive() string
func (Configuration) GetDomain ¶
func (c Configuration) GetDomain() string
func (Configuration) GetMysql ¶
func (c Configuration) GetMysql() map[string]IMysql
func (Configuration) GetPort ¶
func (c Configuration) GetPort() string
func (Configuration) GetRedis ¶
func (c Configuration) GetRedis() IRedis
func (Configuration) GetScheme ¶
func (c Configuration) GetScheme() string
func (Configuration) GetSwaggerPort ¶
func (c Configuration) GetSwaggerPort() string
func (Configuration) GetSwaggerUrl ¶
func (c Configuration) GetSwaggerUrl() string
func (Configuration) GetTimezone ¶
func (c Configuration) GetTimezone() string
func (Configuration) GetUrl ¶
func (c Configuration) GetUrl() string
type ConfigurationReadOnly ¶
type IMinio ¶
type IRedisCluster ¶
func GetRedisCluster ¶
func GetRedisCluster() IRedisCluster
Click to show internal directories.
Click to hide internal directories.