consul
consul
import "github.com/gojek/courier-go/consul"
Package consul
Index
## type [Config](https://github.com/gojek/courier-go/blob/main/consul/config.go#L9-L15)type Config struct {
ConsulAddress string
HealthyOnly bool
KVKey string
WaitTime time.Duration
Logger *log.Logger
}
func DefaultConfig() *Config
func (c *Config) Validate() error
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver(config *Config) (*Resolver, error)
func (r *Resolver) Done() <-chan struct{}
func (r *Resolver) Start()
func (r *Resolver) Stop()
func (r *Resolver) UpdateChan() <-chan []courier.TCPAddress
Generated by gomarkdoc