oc-monitord/conf/conf.go

29 lines
372 B
Go
Raw Normal View History

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