Documentation
¶
Index ¶
- Variables
- type DNSServiceDiscovery
- func (d *DNSServiceDiscovery) GetInstances(ctx context.Context, options provider.GetInstanceOptions) ([]provider.Instancer, error)
- func (d *DNSServiceDiscovery) Lookup(ctx context.Context, host string) ([]string, error)
- func (d *DNSServiceDiscovery) Watch(ctx context.Context, options provider.GetInstanceOptions) (<-chan []provider.Instancer, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("no records found")
)
Functions ¶
This section is empty.
Types ¶
type DNSServiceDiscovery ¶
type DNSServiceDiscovery struct {
// contains filtered or unexported fields
}
func NewDNSServiceDiscovery ¶
func NewDNSServiceDiscovery(servers []string, valid time.Duration) (*DNSServiceDiscovery, error)
func (*DNSServiceDiscovery) GetInstances ¶
func (d *DNSServiceDiscovery) GetInstances(ctx context.Context, options provider.GetInstanceOptions) ([]provider.Instancer, error)
func (*DNSServiceDiscovery) Watch ¶
func (d *DNSServiceDiscovery) Watch(ctx context.Context, options provider.GetInstanceOptions) (<-chan []provider.Instancer, error)
Click to show internal directories.
Click to hide internal directories.