Versions in this module Expand all Collapse all v0 v0.1.1 Oct 15, 2023 Changes in this version + const DefaultExpireInterval + const DefaultRefreshInterval + var DefaultLbOpts = Options + type BalancerFactory struct + func NewBalancerFactory(config Config) *BalancerFactory + func (b *BalancerFactory) GetInstance(ctx context.Context, req *protocol.Request) (discovery.Instance, error) + type Config struct + Balancer Loadbalancer + LbOpts Options + Resolver discovery.Resolver + type Loadbalancer interface + Delete func(string) + Name func() string + Pick func(discovery.Result) discovery.Instance + Rebalance func(discovery.Result) + func NewWeightedBalancer() Loadbalancer + type Options struct + ExpireInterval time.Duration + RefreshInterval time.Duration + func (v *Options) Check()