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

35 lines
442 B
Go

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