resolver

package
v1.1.19 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, reg eregistry.Registry)

Register ...

Types

type Builder

type Builder interface {
	// Build creates a new resolver for the given target.
	// gRPC dial calls Build synchronously, and fails if the returned error is
	// not nil.
	Build(addr string) (Resolver, error)
	// Scheme returns the scheme supported by this resolver.
	Scheme() string
}

Builder creates a resolver that will be used to watch name resolution updates.

func Get

func Get(scheme string) Builder

type Resolver

type Resolver interface {
	GetAddr() string
}

Jump to

Keyboard shortcuts

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