resolver

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Register

func Register(b naming.Builder)

Register register resolver builder if nil.

Types

type Builder

type Builder struct {
	naming.Builder
}

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

func (*Builder) Build

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

type MD

type MD struct {
	Weight int64
	Color  string
}

MD is context metadata for balancer and 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.

Jump to

Keyboard shortcuts

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