Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConn ¶
func GetConn(schema, serviceName string, rds redis.Cmdable) (*grpc.ClientConn, error)
func Register ¶
func Register(schema string, rds redis.Cmdable, myHost string, myPort int, serviceName string, ttl int) (err error)
Register separated by commas
func UnRegister ¶
func UnRegister()
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func (*Resolver) Build ¶
func (r *Resolver) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
func (*Resolver) ResolveNow ¶
func (r1 *Resolver) ResolveNow(rn resolver.ResolveNowOptions)
Click to show internal directories.
Click to hide internal directories.