2015-09-21 16:05:56 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
type ConsulProvider struct {
|
2015-10-01 10:04:25 +00:00
|
|
|
Watch bool
|
|
|
|
Endpoint string
|
|
|
|
Prefix string
|
|
|
|
Filename string
|
|
|
|
KvProvider *KvProvider
|
2015-09-21 16:05:56 +00:00
|
|
|
}
|
|
|
|
|
2015-10-01 10:04:25 +00:00
|
|
|
func (provider *ConsulProvider) Provide(configurationChan chan<- configMessage) error {
|
|
|
|
provider.KvProvider = NewConsulProvider(provider)
|
|
|
|
return provider.KvProvider.provide(configurationChan)
|
2015-09-21 16:05:56 +00:00
|
|
|
}
|