Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiscoveryBuilder ¶
type DiscoveryBuilder struct{}
func (*DiscoveryBuilder) Build ¶
func (b *DiscoveryBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
Build creates a new resolver for the given target.
gRPC dial calls Build synchronously, and fails if the returned error is not nil.
func (*DiscoveryBuilder) Scheme ¶
func (b *DiscoveryBuilder) Scheme() string
Scheme returns the scheme supported by this resolver. Scheme is defined at https://github.com/grpc/grpc/blob/master/doc/naming.md.
type DiscoveryResolver ¶
type DiscoveryResolver struct {
// contains filtered or unexported fields
}
func (*DiscoveryResolver) ResolveNow ¶
func (r *DiscoveryResolver) ResolveNow(_ resolver.ResolveNowOptions)
ResolveNow will be called by gRPC to try to resolve the target name again. It's just a hint, resolver can ignore this if it's not necessary.
It could be called multiple times concurrently.
Click to show internal directories.
Click to hide internal directories.