resolver

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dialer

func Dialer(ctx context.Context, dialEp string) (net.Conn, error)

Dialer dials an endpoint using net.Dialer. Context cancellation and timeout are supported.

func ParseEndpoint

func ParseEndpoint(endpoint string) (proto string, host string, scheme string)

Types

type ResolverGroup

type ResolverGroup interface {
	// Target generates a target for grpc to dial
	Target() string

	// SetAddrs input a list of rawAddrs as addresses to added
	SetAddrs(addrs []string)

	// Close closes the ResolverGroup
	Close()
}

func NewResolverGroup

func NewResolverGroup(id string) ResolverGroup

Jump to

Keyboard shortcuts

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