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/internal/config/config.go

35 lines
446 B
Go

package config
var (
Version = "0.0.1-dev0"
)
const (
Name = "go.micro.router"
PkgPath = "git.jochum.dev/jo-micro/router"
)
const (
EnvDev = "dev"
EnvProd = "prod"
)
type Config struct {
Router RouterConfig
}
type RouterConfig struct {
Env string
Address string
RouterURI string
RefreshSeconds int
}
func GetConfig() Config {
return *_cfg
}
func GetRouterConfig() RouterConfig {
return _cfg.Router
}