Discover Packages
github.com/uopensail/ulib
commonconfig
package
Version:
v0.0.7
Opens a new window with list of versions in this module.
Published: Jul 12, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
Documentation
¶
type DownloaderConfig struct {
FinderConfig
SourcePath string `toml:"source_path"`
LocalPath string `toml:"local_path"`
Interval int `toml:"interval"`
}
type FinderConfig struct {
Type string `toml:"type"`
Timeout int `toml:"timeout"`
Endpoint string `toml:"endpoint"`
Region string `toml:"region"`
AccessKey string `toml:"access_key"`
SecretKey string `toml:"secret_key"`
}
type HttpServerConfig struct {
HTTPPort int `toml:"http_port"`
ReadTimeout int `toml:"read_timeout"`
WriteTimeout int `toml:"write_timeout"`
}
type MongoClientConfig struct {
URL string `toml:"url"`
MaxPoolSize int `toml:"max_pool_size"`
Timeout int `toml:"timeout"`
}
type RedisConfig struct {
Address string `toml:"address"`
Password string `toml:"password"`
DefaultDB int `toml:"default_db"`
DBIndexes map[string ]int `toml:"db_indexes"`
MinIdleConnections int `toml:"min_idel_conns"`
ReadTimeout int `toml:"read_timeout"`
DialTimout int `toml:"dial_timeout"`
}
type ServerConfig struct {
HttpServerConfig `toml:",inline"`
ServiceEnv map[string ]string `toml:"sevice_env"`
GRPCPort int `toml:"grpc_port"`
HTTPSPort int `toml:"https_port"`
ProjectName string `toml:"project_name"`
PromePort int `toml:"prome_port"`
PProfPort int `toml:"pprof_port"`
Debug bool `toml:"debug"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.