* TP-55555 | cybertron ui * TP-55555 clean up * TP-55555 clean up * TP-55555 | latest push
20 lines
462 B
Go
20 lines
462 B
Go
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),
|
|
}
|
|
}
|