You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
router/config/config.go

32 lines
438 B
Go

package config
const (
Name = "go.micro.router"
Version = "0.0.1-dev0"
RouterURI = "router"
PkgPath = "github.com/go-micro/router"
)
const (
EnvDev = "dev"
EnvProd = "prod"
)
type Config struct {
Server ServerConfig
}
type ServerConfig struct {
Env string
Address string
RefreshSeconds int
}
func GetConfig() Config {
return *_cfg
}
func GetServerConfig() ServerConfig {
return _cfg.Server
}