client

package
v0.0.0-...-a3a5c94 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWatcherClosed = fmt.Errorf("naming: watch closed")

Functions

This section is empty.

Types

type GRPCResolver

type GRPCResolver struct {
	// Client is an initialized etcd client.
	Client *etcd.Client
}

GRPCResolver creates a grpc.Watcher for a target to track its resolution changes.

func (*GRPCResolver) Resolve

func (gr *GRPCResolver) Resolve(target string) (naming.Watcher, error)

Resolve

func (*GRPCResolver) Update

func (gr *GRPCResolver) Update(ctx context.Context, target string, nm naming.Update, opts ...etcd.OpOption) (err error)

Update

Jump to

Keyboard shortcuts

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