Documentation ¶
Overview ¶
START: picker_builder
START: resolver_type
Index ¶
Constants ¶
const Name = "proglog"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Picker ¶
type Picker struct {
// contains filtered or unexported fields
}
func (*Picker) Pick ¶
Pick is called by the gRPC to help it decide what subconnection to pick. The gRPS passes in PickInfo and receives back a PickResult. The PickInfo contains the full method name of the RPC call and the context of the call. The PickResult contains the subconnection to handle the call or an error.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
The Resolver is a gRPC resolver because it implements the resolver.Resolver interface. It watches the cluster membership changes and updates the client connection accordingly.
func (*Resolver) Build ¶
func (r *Resolver) Build( target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions, ) (resolver.Resolver, error)
func (*Resolver) ResolveNow ¶
func (r *Resolver) ResolveNow(resolver.ResolveNowOptions)
ResolveNow is called by gRPC to resolve the target name (in this case, just the service name) and update ClientConn with the resolved addresses.