Documentation
¶
Index ¶
Constants ¶
View Source
const ResolverName string = "dcache"
Variables ¶
This section is empty.
Functions ¶
func NewServerWithGetter ¶
func NewServerWithGetter(cache Cache, getter ServerFinder, grpcOpts ...grpc.ServerOption) ( *grpc.Server, error, )
NewServer returns a grpc.Server with the given options applied.
Types ¶
type Resolver ¶
func (*Resolver) Build ¶
func (r *Resolver) Build( target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions, ) (resolver.Resolver, error)
func (*Resolver) Close ¶
func (r *Resolver) Close()
Close tears down clientConn and all underlying connections
func (*Resolver) ResolveNow ¶
func (r *Resolver) ResolveNow(resolver.ResolveNowOptions)
type ServerFinder ¶
ServerFinder is to combat compatibility issues with adding GetServers() to the cache struct. Since that would make us change the tests fully since we cannot use bigcache easily.
Click to show internal directories.
Click to hide internal directories.