Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory(cache servicediscovery.Cache) *Factory
func (*Factory) CreateClientConn ¶
func (gcf *Factory) CreateClientConn(serverUrl string, grpcOpts ...grpc.DialOption) (*grpc.ClientConn, error)
func (*Factory) NewLoadBalanceResolver ¶
func (gcf *Factory) NewLoadBalanceResolver() *LoadBalanceResolver
type LoadBalanceResolver ¶
type LoadBalanceResolver struct {
// contains filtered or unexported fields
}
func (*LoadBalanceResolver) Build ¶
func (lr *LoadBalanceResolver) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
func (*LoadBalanceResolver) Close ¶
func (lr *LoadBalanceResolver) Close()
Close 实现了 resolver.Resolver.Close 方法
func (*LoadBalanceResolver) ResolveNow ¶
func (*LoadBalanceResolver) ResolveNow(o resolver.ResolveNowOptions)
ResolveNow 实现了 resolver.Resolver.ResolveNow 方法
func (*LoadBalanceResolver) Scheme ¶
func (*LoadBalanceResolver) Scheme() string
Scheme 实现了 resolver.Builder.Scheme 方法 Scheme 方法定义了 sd resolver 的协议名
Click to show internal directories.
Click to hide internal directories.