Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
App *App `json:"app" toml:"app"`
// [mongodb]
MongoDB *mongodb `json:"mongodb" toml:"mongodb"`
// [http]
Http *Http `json:"http" toml:"http"`
// [grpc]
Grpc *Grpc `json:"grpc" toml:"grpc"`
// 程序接入Jaeger配置
Jaeger *jaeger `json:"jaeger" toml:"jaeger"`
}
程序的配置对象 config --> object
func DefaultConfig ¶
func DefaultConfig() *Config
func LoadConfigFromEnv ¶
func LoadConfigFromToml ¶
Click to show internal directories.
Click to hide internal directories.