Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEBUG = false Scheme = "etcdv3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdClient ¶
type EtcdClient struct {
// contains filtered or unexported fields
}
type GrpcResolver ¶
type GrpcResolver struct { *EtcdClient // contains filtered or unexported fields }
func NewGrpcResolver ¶
func NewGrpcResolver(endpoints []string, dialTimeout time.Duration) (m *GrpcResolver)
func (*GrpcResolver) Build ¶
func (b *GrpcResolver) 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 (*GrpcResolver) DebugStore ¶
func (b *GrpcResolver) DebugStore()
func (*GrpcResolver) InitGrpcResolver ¶
func (m *GrpcResolver) InitGrpcResolver() (err error)
func (*GrpcResolver) Scheme ¶
func (b *GrpcResolver) 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 Register ¶
type Register struct { *EtcdClient // contains filtered or unexported fields }
func NewRegister ¶
Click to show internal directories.
Click to hide internal directories.