Discover Packages
github.com/ca17/go-common
conf
package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: May 27, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type DBConfig struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
MaxConn int `yaml:"max_conn"`
MaxIdle int `yaml:"max_idle"`
Name string `yaml:"name"`
User string `yaml:"user"`
Passwd string `yaml:"passwd"`
}
type GrpcConfig struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
CertFile string `yaml:"cert_file"`
}
type RedisConfig struct {
Host string `yaml:"host"`
Password string `yaml:"password"`
DB int `yaml:"db"`
}
type WebConfig struct {
Debug bool `yaml:"debug"`
Host string `yaml:"host"`
Port int `yaml:"port"`
Secret string `yaml:"secret"`
CertFile string `yaml:"cert_file"`
KeyFile string `yaml:"key_file"`
AuthSkip string `yaml:"auth_skip"`
AllowOrigins string `yaml:"allow_origins"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.