Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultRemoveDelay is the minimum time between successive address removals. DefaultRemoveDelay = 1 * time.Minute )
View Source
const Scheme = "gitaly-ruby"
Scheme is the name of the address scheme that makes gRPC select this resolver.
Variables ¶
This section is empty.
Functions ¶
func AddAddress ¶
func AddAddress(a string)
AddAddress adds the address of a gitaly-ruby instance to the load balancer.
func ConfigureBuilder ¶
ConfigureBuilder changes the configuration of the global balancer instance. All calls that interact with the balancer will block until ConfigureBuilder has been called at least once.
func RemoveAddress ¶
RemoveAddress removes the address of a gitaly-ruby instance from the load balancer. Returns false if the pool is too small to remove the address.
Types ¶
Click to show internal directories.
Click to hide internal directories.