// Get returns the default config with any modifications through environment
// variables
Get returns the default config with any modifications through environment
variables
// Get returns the default config with any modifications through environment // variables
func Get() (*Config, error) {
	if cfg != nil {
		return cfg, nil
	}
	cfg = &Config{
		BindAddr:                   "localhost:28000",
		ContentUpdatedTopicFlag:    false,
		GracefulShutdownTimeout:    5 * time.Second,
		HealthCheckCriticalTimeout: 90 * time.Second,
		HealthCheckInterval:        30 * time.Second,
		KafkaConfig: KafkaConfig{
			Brokers:               []string{"localhost:9092", "localhost:9093", "localhost:9094"},
			ContentUpdatedTopic:   "content-updated",
			NumWorkers:            1,
			OffsetOldest:          true,
			ReindexRequestedGroup: "dp-search-data-finder",
			ReindexRequestedTopic: "reindex-requested",
			SecProtocol:           "",
			SecCACerts:            "",
			SecClientCert:         "",
			SecClientKey:          "",
			SecSkipVerify:         false,
			Version:               "1.0.2",
		},
		SearchReindexURL:     "http://localhost:25700",
		ServiceAuthToken:     "",
		ZebedeeClientTimeout: 30 * time.Second,
		ZebedeeURL:           "http://localhost:8082",
	}
	return cfg, envconfig.Process("", cfg)
}
func Get ( ) ( * Config , error ) { if cfg != nil { return cfg , nil } cfg = & Config { BindAddr : " " , ContentUpdatedTopicFlag : false , GracefulShutdownTimeout : 5 * time . Second , HealthCheckCriticalTimeout : 90 * time . Second , HealthCheckInterval : 30 * time . Second , KafkaConfig : KafkaConfig { Brokers : [ ] string { " " , " " , " " } , ContentUpdatedTopic : " " , NumWorkers : 1 , OffsetOldest : true , ReindexRequestedGroup : " " , ReindexRequestedTopic : " " , SecProtocol : " " , SecCACerts : " " , SecClientCert : " " , SecClientKey : " " , SecSkipVerify : false , Version : " " , } , SearchReindexURL : " " , ServiceAuthToken : " " , ZebedeeClientTimeout : 30 * time . Second , ZebedeeURL : " " , } return cfg , envconfig . Process ( " " , cfg ) }
Get returns the default config with any modifications through environment
variables
Get returns the default config with any modifications through environment variables