resolver

package
v1.65.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Scheme = "customize-endpoints"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomizeResolver

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

DefineResolver is a Resolver (and resolver.Builder) that can be updated using SetEndpoints.

func NewCustomizeResolver

func NewCustomizeResolver(endpoints []string, attributes map[string]*attributes.Attributes) *CustomizeResolver

func (*CustomizeResolver) Build

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

func (*CustomizeResolver) Close

func (r *CustomizeResolver) Close()

Close is a noop for Resolver.

func (*CustomizeResolver) ResolveNow

func (r *CustomizeResolver) ResolveNow(o resolver.ResolveNowOptions)

ResolveNow is a noop for Resolver. When balancer.UpdateClientConnState error just returned ErrBadResolverState will call resolver.ResolveNow

func (*CustomizeResolver) Scheme

func (r *CustomizeResolver) Scheme() string

func (*CustomizeResolver) SetEndpoints

func (r *CustomizeResolver) SetEndpoints(endpoints []string, attributes map[string]*attributes.Attributes)

Jump to

Keyboard shortcuts

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