Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTinyKvServer ¶
func RegisterTinyKvServer(s *grpc.Server, srv TinyKvServer)
Types ¶
type TinyKvClient ¶
type TinyKvClient interface { // KV commands with mvcc/txn supported. KvGet(ctx context.Context, in *kvrpcpb.GetRequest, opts ...grpc.CallOption) (*kvrpcpb.GetResponse, error) KvScan(ctx context.Context, in *kvrpcpb.ScanRequest, opts ...grpc.CallOption) (*kvrpcpb.ScanResponse, error) KvPrewrite(ctx context.Context, in *kvrpcpb.PrewriteRequest, opts ...grpc.CallOption) (*kvrpcpb.PrewriteResponse, error) KvCommit(ctx context.Context, in *kvrpcpb.CommitRequest, opts ...grpc.CallOption) (*kvrpcpb.CommitResponse, error) KvCheckTxnStatus(ctx context.Context, in *kvrpcpb.CheckTxnStatusRequest, opts ...grpc.CallOption) (*kvrpcpb.CheckTxnStatusResponse, error) KvBatchRollback(ctx context.Context, in *kvrpcpb.BatchRollbackRequest, opts ...grpc.CallOption) (*kvrpcpb.BatchRollbackResponse, error) KvResolveLock(ctx context.Context, in *kvrpcpb.ResolveLockRequest, opts ...grpc.CallOption) (*kvrpcpb.ResolveLockResponse, error) // RawKV commands. RawGet(ctx context.Context, in *kvrpcpb.RawGetRequest, opts ...grpc.CallOption) (*kvrpcpb.RawGetResponse, error) RawPut(ctx context.Context, in *kvrpcpb.RawPutRequest, opts ...grpc.CallOption) (*kvrpcpb.RawPutResponse, error) RawDelete(ctx context.Context, in *kvrpcpb.RawDeleteRequest, opts ...grpc.CallOption) (*kvrpcpb.RawDeleteResponse, error) RawScan(ctx context.Context, in *kvrpcpb.RawScanRequest, opts ...grpc.CallOption) (*kvrpcpb.RawScanResponse, error) // Raft commands (tinykv <-> tinykv). Raft(ctx context.Context, opts ...grpc.CallOption) (TinyKv_RaftClient, error) Snapshot(ctx context.Context, opts ...grpc.CallOption) (TinyKv_SnapshotClient, error) // Coprocessor Coprocessor(ctx context.Context, in *coprocessor.Request, opts ...grpc.CallOption) (*coprocessor.Response, error) }
func NewTinyKvClient ¶
func NewTinyKvClient(cc *grpc.ClientConn) TinyKvClient
type TinyKvServer ¶
type TinyKvServer interface { // KV commands with mvcc/txn supported. KvGet(context.Context, *kvrpcpb.GetRequest) (*kvrpcpb.GetResponse, error) KvScan(context.Context, *kvrpcpb.ScanRequest) (*kvrpcpb.ScanResponse, error) KvPrewrite(context.Context, *kvrpcpb.PrewriteRequest) (*kvrpcpb.PrewriteResponse, error) KvCommit(context.Context, *kvrpcpb.CommitRequest) (*kvrpcpb.CommitResponse, error) KvCheckTxnStatus(context.Context, *kvrpcpb.CheckTxnStatusRequest) (*kvrpcpb.CheckTxnStatusResponse, error) KvBatchRollback(context.Context, *kvrpcpb.BatchRollbackRequest) (*kvrpcpb.BatchRollbackResponse, error) KvResolveLock(context.Context, *kvrpcpb.ResolveLockRequest) (*kvrpcpb.ResolveLockResponse, error) // RawKV commands. RawGet(context.Context, *kvrpcpb.RawGetRequest) (*kvrpcpb.RawGetResponse, error) RawPut(context.Context, *kvrpcpb.RawPutRequest) (*kvrpcpb.RawPutResponse, error) RawDelete(context.Context, *kvrpcpb.RawDeleteRequest) (*kvrpcpb.RawDeleteResponse, error) RawScan(context.Context, *kvrpcpb.RawScanRequest) (*kvrpcpb.RawScanResponse, error) // Raft commands (tinykv <-> tinykv). Raft(TinyKv_RaftServer) error Snapshot(TinyKv_SnapshotServer) error // Coprocessor Coprocessor(context.Context, *coprocessor.Request) (*coprocessor.Response, error) }
type TinyKv_RaftClient ¶
type TinyKv_RaftClient interface { Send(*raft_serverpb.RaftMessage) error CloseAndRecv() (*raft_serverpb.Done, error) grpc.ClientStream }
type TinyKv_RaftServer ¶
type TinyKv_RaftServer interface { SendAndClose(*raft_serverpb.Done) error Recv() (*raft_serverpb.RaftMessage, error) grpc.ServerStream }
type TinyKv_SnapshotClient ¶
type TinyKv_SnapshotClient interface { Send(*raft_serverpb.SnapshotChunk) error CloseAndRecv() (*raft_serverpb.Done, error) grpc.ClientStream }
type TinyKv_SnapshotServer ¶
type TinyKv_SnapshotServer interface { SendAndClose(*raft_serverpb.Done) error Recv() (*raft_serverpb.SnapshotChunk, error) grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.