Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "proglog"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Picker ¶
type Picker struct {
// contains filtered or unexported fields
}
Picker represents an entity for picking which connection to use for a request. It is the load balancing component of the gRPC request resolution process.
func (*Picker) Build ¶
func (p *Picker) Build(buildInfo base.PickerBuildInfo) balancer.Picker
Seperates the connections to the followers from the connection to the leader and stores them in a Picker instance. The picker instance built is returned.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func (*Resolver) Build ¶
func (r *Resolver) Build( target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions, ) (resolver.Resolver, error)
Sets up a client connection for querying details of servers in the cluster.
func (*Resolver) ResolveNow ¶
func (r *Resolver) ResolveNow(resolver.ResolveNowOptions)
Fetches the list of servers with a GetServersRequest api call, and obtains the resolved addresses to use.
Click to show internal directories.
Click to hide internal directories.