Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SysVersion = "dev"
Functions ¶
func LoadConfig ¶
func LoadConfig(configPath ...string)
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { MODE string `yaml:"Mode"` Port string `yaml:"Port"` // grpc和http服务监听端口 Log struct { LogPath string `yaml:"LogPath"` CLS struct { Endpoint string `yaml:"Endpoint"` AccessKey string `yaml:"AccessKey"` AccessToken string `yaml:"AccessToken"` TopicID string `yaml:"TopicID"` } `yaml:"CLS"` } `yaml:"Log"` SentryDsn string `yaml:"SentryDsn"` }
func Get ¶
func Get() *GlobalConfig
Click to show internal directories.
Click to hide internal directories.