static

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2017 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

Resolver implements a gRPC resolver/watcher that simply returns a list of addresses, then blocks.

func NewResolver

func NewResolver(addr ...string) *Resolver

NewResolver initializes and returns a new Resolver.

func (*Resolver) Close

func (r *Resolver) Close()

Close is a no-op for a Resolver.

func (*Resolver) Next

func (r *Resolver) Next() ([]*naming.Update, error)

Next returns the list of addresses once, then blocks on consecutive calls.

func (*Resolver) Resolve

func (r *Resolver) Resolve(target string) (naming.Watcher, error)

Resolve creates a watcher for target. The watcher interface is implemented by Resolver as well, see Next and Close.

Jump to

Keyboard shortcuts

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