package config

// Context is the global configuration context
var Context Config

func InitInfraContext() {
	infraCfg := Global().InfraConfig
	Context.region = infraCfg.Region
	Context.configServiceURL = infraCfg.ConfigServiceURL
}

type Config struct {
	region           string
	configServiceURL string
}

func (c Config) Region() string {
	return c.region
}

func (c Config) ConfigServiceURL() string {
	return c.configServiceURL
}
