Documentation ¶
Index ¶
- Variables
- type Configuration
- func (c Configuration) GetActive() string
- func (c Configuration) GetCrosAllowHeaders() string
- func (c Configuration) GetCrosAllowOrigin() []string
- func (c Configuration) GetCryptAesToken() string
- func (c Configuration) GetCryptRsaPriv() string
- func (c Configuration) GetDomain() string
- func (c Configuration) GetEs() []string
- func (c Configuration) GetIsSetupView() bool
- func (c Configuration) GetLogFile() string
- func (c Configuration) GetMysql() map[string]IMysql
- func (c Configuration) GetPort() string
- func (c Configuration) GetRedis() IRedis
- func (c Configuration) GetRedisUse() string
- func (c Configuration) GetScheme() string
- func (c Configuration) GetSignatureExclude() []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"` RedisUse string `yaml:"redis_use"` CryptAesToken string `yaml:"crypt.aes.token"` CryptRsaPriv string `yaml:"crypt.rsa.priv"` LogFile string `yaml:"logfile"` IsSetupView string `yaml:"is_setup_view"` CrosAllowOrigin string `yaml:"cros.allow_origin"` CrosAllowHeaders string `yaml:"cros.allow_headers"` SignatureExclude string `yaml:"signature.exclude"` }
func CovertConfiguration ¶
func CovertConfiguration() *Configuration
CovertConfiguration struct tag 指定为属性值,方便操作
func (Configuration) GetActive ¶
func (c Configuration) GetActive() string
func (Configuration) GetCrosAllowHeaders ¶
func (c Configuration) GetCrosAllowHeaders() string
func (Configuration) GetCrosAllowOrigin ¶
func (c Configuration) GetCrosAllowOrigin() []string
func (Configuration) GetCryptAesToken ¶
func (c Configuration) GetCryptAesToken() string
func (Configuration) GetCryptRsaPriv ¶
func (c Configuration) GetCryptRsaPriv() string
func (Configuration) GetDomain ¶
func (c Configuration) GetDomain() string
func (Configuration) GetIsSetupView ¶
func (c Configuration) GetIsSetupView() bool
func (Configuration) GetLogFile ¶
func (c Configuration) GetLogFile() 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) GetRedisUse ¶
func (c Configuration) GetRedisUse() string
func (Configuration) GetScheme ¶
func (c Configuration) GetScheme() string
func (Configuration) GetSignatureExclude ¶
func (c Configuration) GetSignatureExclude() []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 ConfigurationReadOnly interface { GetActive() string GetUrl() string GetSwaggerUrl() string GetDomain() string GetPort() string GetTimezone() string GetSock() string GetSwaggerPort() string GetScheme() string GetLogFile() string GetIsSetupView() bool GetRedisUse() string GetCryptAesToken() string GetCryptRsaPriv() string GetCrosAllowOrigin() []string GetSignatureExclude() []string GetCrosAllowHeaders() string GetEs() []string GetMysql() map[string]IMysql GetRedis() IRedis }
ConfigurationReadOnly web 应用基础配置
type IMinio ¶
type IRedisCluster ¶
func GetRedisCluster ¶
func GetRedisCluster() IRedisCluster
Click to show internal directories.
Click to hide internal directories.