oc-monitord/conf/conf.go

28 lines
376 B
Go

package conf
import "sync"
type Config struct {
LokiURL string
ExecutionID string
WorkflowID string
OcCatalogUrl string
MongoUrl string
Database string
MonitorDir string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}
func GetConfFromArgs(argument string) {
}