Back to

Package resolver

Latest Go to latest

The latest major version is .

Published: Jan 20, 2020 | License: MIT | Module:



const (
	// Scheme is the scheme of discovery address
	Scheme = "grpc"

func Register

func Register(b naming.Builder)

Register register resolver builder if nil.

func RegisterTarget

func RegisterTarget(target *string, discoveryID string)

RegisterTarget will register grpc discovery mock address flag

func Set

func Set(b naming.Builder)

Set override any registered builder

type Builder

type Builder struct {

Builder is also a resolver builder. It's build() function always returns itself.

func (*Builder) Build

func (b *Builder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOption) (resolver.Resolver, error)

Build returns itself for Resolver, because it's both a builder and a resolver.

type Resolver

type Resolver struct {
	// contains filtered or unexported fields

Resolver watches for the updates on the specified target. Updates include address updates and service config updates.

func (*Resolver) Close

func (r *Resolver) Close()

Close is a noop for Resolver.

func (*Resolver) ResolveNow

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

ResolveNow is a noop for Resolver.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier