1
0
Fork 0

Use KvStores as global config source

This commit is contained in:
Martin 2016-06-24 09:58:42 +02:00
parent 9be0c67d5c
commit 056e0fe2d9
15 changed files with 330 additions and 26 deletions

View file

@ -22,12 +22,12 @@ import (
// Kv holds common configurations of key-value providers.
type Kv struct {
BaseProvider
Endpoint string `description:"Comma sepparated server endpoints"`
Prefix string `description:"Prefix used for KV store"`
TLS *KvTLS `description:"Enable TLS support"`
storeType store.Backend
kvclient store.Store
BaseProvider `mapstructure:",squash"`
Endpoint string `description:"Comma sepparated server endpoints"`
Prefix string `description:"Prefix used for KV store"`
TLS *KvTLS `description:"Enable TLS support"`
storeType store.Backend
kvclient store.Store
}
// KvTLS holds TLS specific configurations