resolver

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type DiscoveryBuilder

type DiscoveryBuilder struct{}

func (*DiscoveryBuilder) Build

Build creates a new resolver for the given target.

gRPC dial calls Build synchronously, and fails if the returned error is not nil.

func (*DiscoveryBuilder) Scheme

func (b *DiscoveryBuilder) Scheme() string

Scheme returns the scheme supported by this resolver. Scheme is defined at https://github.com/grpc/grpc/blob/master/doc/naming.md.

type DiscoveryResolver

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

func (*DiscoveryResolver) Close

func (r *DiscoveryResolver) Close()

Close closes the resolver.

func (*DiscoveryResolver) ResolveNow

func (r *DiscoveryResolver) ResolveNow(_ resolver.ResolveNowOptions)

ResolveNow will be called by gRPC to try to resolve the target name again. It's just a hint, resolver can ignore this if it's not necessary.

It could be called multiple times concurrently.

Jump to

Keyboard shortcuts

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