resolver

package
v0.0.0-...-4d778f5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 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
}

Builder returns a resolver for a client addrs.

func New

func New(secure bool) *Builder

New returns a new resolver for the peer.

func (*Builder) Add

func (b *Builder) Add(peer *peers.Peer)

Add adds peer resolution rules.

func (*Builder) Build

Build implements grpc.Builder.

func (*Builder) Scheme

func (b *Builder) Scheme() string

Scheme implements grpc.Builder.

type Resolver

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

Resolver implements grpc.Resolver.

func (*Resolver) Close

func (*Resolver) Close()

Close implements grpc.Resolver.

func (*Resolver) ResolveNow

func (*Resolver) ResolveNow(o resolver.ResolveNowOption)

ResolveNow implements grpc.Resolver.

Jump to

Keyboard shortcuts

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