Documentation ¶
Index ¶
Constants ¶
View Source
const (
Name = "discovery"
)
Variables ¶
This section is empty.
Functions ¶
func NewResolverBuilderEtcd ¶
func NewResolverBuilderEtcd(discoverer register.IDiscovery) resolver.Builder
Types ¶
type ResolverBuilderEtcd ¶
type ResolverBuilderEtcd struct {
// contains filtered or unexported fields
}
func (*ResolverBuilderEtcd) Build ¶
func (b *ResolverBuilderEtcd) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
Build 做一些解析,解析ETCD的地址,从ETCD解析到RPC的地址,用cc.UpdateState更新RPC地址, 执行 grpc.dial 的时候调用
Click to show internal directories.
Click to hide internal directories.