resolver

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(client *clientv3.Client) *Builder

func (Builder) Build

func (Builder) Scheme

func (b Builder) Scheme() string

type Option

type Option int
const (
	Add Option = iota
	Delete
)

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver(client *clientv3.Client, target string, cc gresolver.ClientConn) *Resolver

func (*Resolver) Close

func (r *Resolver) Close()

func (*Resolver) ResolveNow

func (r *Resolver) ResolveNow(gresolver.ResolveNowOptions)

type Update

type Update struct {
	Op   Option
	Key  string
	Addr string
}

type WatchChan

type WatchChan chan []*Update

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL