14 lines
340 B
Go
14 lines
340 B
Go
package main
|
|
|
|
type ConsulProvider struct {
|
|
Watch bool
|
|
Endpoint string
|
|
Prefix string
|
|
Filename string
|
|
KvProvider *KvProvider
|
|
}
|
|
|
|
func (provider *ConsulProvider) Provide(configurationChan chan<- configMessage) error {
|
|
provider.KvProvider = NewConsulProvider(provider)
|
|
return provider.KvProvider.provide(configurationChan)
|
|
}
|