Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "zk_weight_balancer"
Variables ¶
View Source
var ZkConfigs = make(map[string]*ZkConfig)
Functions ¶
func DelZkConfig ¶
func DelZkConfig(label string)
Types ¶
type Watcher ¶
A Watcher represents how a serverset.Watch is used so it can be stubbed out for tests.
type WeightAddrInfo ¶
type WeightAddrInfo struct {
Weight int
}
type WeightAttributeKey ¶
type WeightAttributeKey struct{}
type ZkResolver ¶
type ZkResolver struct {
*ZkConfig
}
func (*ZkResolver) Build ¶
func (r *ZkResolver) Build(url resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
func (*ZkResolver) Close ¶
func (r *ZkResolver) Close()
func (*ZkResolver) ResolveNow ¶
func (r *ZkResolver) ResolveNow(resolver.ResolveNowOptions)
func (*ZkResolver) Scheme ¶
func (r *ZkResolver) Scheme() string
Click to show internal directories.
Click to hide internal directories.