Files
cybertron/configs/Elastic.go

20 lines
462 B
Go
Raw Permalink Normal View History

package configs
type ElasticConfig struct {
Addresses []string
Username string
Password string
Index string
APIKey string
}
func NewElasticConfig() *ElasticConfig {
return &ElasticConfig{
Addresses: getStringSlice("elastic.addresses", true),
Username: getString("elastic.username", true),
Password: getString("elastic.password", true),
Index: getString("elastic.index", true),
APIKey: getString("elastic.api_key", true),
}
}