Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSupported = errors.New("discovery data not supported")
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface {
GetConn(ctx context.Context, serviceName string, opts ...grpc.DialOption) (grpc.ClientConnInterface, error)
GetConns(ctx context.Context, serviceName string, opts ...grpc.DialOption) ([]grpc.ClientConnInterface, error)
IsSelfNode(cc grpc.ClientConnInterface) bool
}
type KeyValue ¶
type KeyValue interface {
SetKey(ctx context.Context, key string, value []byte) error
SetWithLease(ctx context.Context, key string, val []byte, ttl int64) error
GetKey(ctx context.Context, key string) ([]byte, error)
GetKeyWithPrefix(ctx context.Context, key string) ([][]byte, error)
WatchKey(ctx context.Context, key string, fn WatchKeyHandler) error
}
type SvcDiscoveryRegistry ¶
type WatchKeyHandler ¶
Click to show internal directories.
Click to hide internal directories.