oc-monitord/conf/conf.go

25 lines
306 B
Go
Raw Normal View History

package conf
import "sync"
type Config struct {
LokiURL string
ExecutionID string
2024-08-22 10:52:49 +02:00
Timeout int
WorkflowID string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}
func GetConfFromArgs(argument string) {
}