Versions in this module Expand all Collapse all v1 v1.0.1 Sep 21, 2022 v1.0.0 Sep 21, 2022 Changes in this version + const VersionLB + var ErrLoadBalancingPolicy = errors.New("LoadBalancingPolicy is empty or not apply") + func GetNodeInfo(attr resolver.Address) *register.Options + func NewDiscovery(opt ...ClientOptions) (resolver.Builder, error) + func SetNodeInfo(addr resolver.Address, hInfo *register.Options) resolver.Address + type ClientOptions func(*Options) + func SetEtcdConf(conf clientv3.Config) ClientOptions + func SetLoadBalancingPolicy(name string) ClientOptions + func SetName(name string) ClientOptions + type Discovery struct + Node sync.Map + func (d *Discovery) AddNode(key, val []byte) error + func (d *Discovery) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error) + func (d *Discovery) DelNode(key []byte) error + func (d *Discovery) GetAddress() []resolver.Address + func (d *Discovery) Scheme() string + func (s *Discovery) Close() + func (s *Discovery) ResolveNow(rn resolver.ResolveNowOptions) + type NodeArray struct + Node []register.Options + type Options struct + EtcdConf clientv3.Config + LoadBalancingPolicy string + SrvName string