Documentation ¶
Index ¶
- Constants
- type CustomizeResolver
- func (r *CustomizeResolver) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
- func (r *CustomizeResolver) Close()
- func (r *CustomizeResolver) ResolveNow(o resolver.ResolveNowOptions)
- func (r *CustomizeResolver) Scheme() string
- func (r *CustomizeResolver) SetEndpoints(endpoints []string, attributes map[string]*attributes.Attributes)
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 ¶
func (r *CustomizeResolver) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
Build returns itself for Resolver, because it's both a builder and a 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)
Click to show internal directories.
Click to hide internal directories.