rpc

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 32 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunInspect added in v0.7.0

func RunInspect(ctx *inspectContext)

Types

type Handle

type Handle struct {
	// contains filtered or unexported fields
}

TODO::GC the abandoned txn.

func NewTAEHandle

func NewTAEHandle(path string, opt *options.Options) *Handle

func (*Handle) CacheTxnRequest

func (h *Handle) CacheTxnRequest(
	ctx context.Context,
	meta txn.TxnMeta,
	req any,
	rsp any) (err error)

func (*Handle) EvaluateTxnRequest added in v0.7.0

func (h *Handle) EvaluateTxnRequest(
	ctx context.Context,
	meta txn.TxnMeta,
) (err error)

EvaluateTxnRequest only evaluate the request ,do not change the state machine of TxnEngine.

func (*Handle) GetTxnEngine

func (h *Handle) GetTxnEngine() moengine.TxnEngine

func (*Handle) HandleClose

func (h *Handle) HandleClose(ctx context.Context) (err error)

func (*Handle) HandleCommit

func (h *Handle) HandleCommit(
	ctx context.Context,
	meta txn.TxnMeta) (err error)

func (*Handle) HandleCommitting

func (h *Handle) HandleCommitting(
	ctx context.Context,
	meta txn.TxnMeta) (err error)

func (*Handle) HandleCreateDatabase

func (h *Handle) HandleCreateDatabase(
	ctx context.Context,
	meta txn.TxnMeta,
	req *db.CreateDatabaseReq,
	resp *db.CreateDatabaseResp) (err error)

func (*Handle) HandleCreateRelation

func (h *Handle) HandleCreateRelation(
	ctx context.Context,
	meta txn.TxnMeta,
	req *db.CreateRelationReq,
	resp *db.CreateRelationResp) (err error)

func (*Handle) HandleDestroy

func (h *Handle) HandleDestroy(ctx context.Context) (err error)

func (*Handle) HandleDropDatabase

func (h *Handle) HandleDropDatabase(
	ctx context.Context,
	meta txn.TxnMeta,
	req *db.DropDatabaseReq,
	resp *db.DropDatabaseResp) (err error)

func (*Handle) HandleDropOrTruncateRelation

func (h *Handle) HandleDropOrTruncateRelation(
	ctx context.Context,
	meta txn.TxnMeta,
	req *db.DropOrTruncateRelationReq,
	resp *db.DropOrTruncateRelationResp) (err error)

func (*Handle) HandleFlushTable

func (h *Handle) HandleFlushTable(
	ctx context.Context,
	meta txn.TxnMeta,
	req db.FlushTable,
	resp *apipb.SyncLogTailResp) (err error)

func (*Handle) HandleForceCheckpoint added in v0.7.0

func (h *Handle) HandleForceCheckpoint(
	ctx context.Context,
	meta txn.TxnMeta,
	req db.Checkpoint,
	resp *apipb.SyncLogTailResp) (err error)

func (*Handle) HandleGetLogTail

func (h *Handle) HandleGetLogTail(
	ctx context.Context,
	meta txn.TxnMeta,
	req apipb.SyncLogTailReq,
	resp *apipb.SyncLogTailResp) (err error)

func (*Handle) HandleInspectDN added in v0.7.0

func (h *Handle) HandleInspectDN(
	ctx context.Context,
	meta txn.TxnMeta,
	req db.InspectDN,
	resp *db.InspectResp) (err error)

func (*Handle) HandlePreCommitWrite

func (h *Handle) HandlePreCommitWrite(
	ctx context.Context,
	meta txn.TxnMeta,
	req apipb.PrecommitWriteCmd,
	resp *apipb.SyncLogTailResp) (err error)

func (*Handle) HandlePrepare

func (h *Handle) HandlePrepare(
	ctx context.Context,
	meta txn.TxnMeta) (pts timestamp.Timestamp, err error)

func (*Handle) HandleRollback

func (h *Handle) HandleRollback(
	ctx context.Context,
	meta txn.TxnMeta) (err error)

func (*Handle) HandleStartRecovery

func (h *Handle) HandleStartRecovery(
	ctx context.Context,
	ch chan txn.TxnMeta)

func (*Handle) HandleUpdateConstraint added in v0.7.0

func (h *Handle) HandleUpdateConstraint(
	ctx context.Context,
	meta txn.TxnMeta,
	req *db.UpdateConstraintReq,
	resp *db.UpdateConstraintResp) (err error)

func (*Handle) HandleWrite

func (h *Handle) HandleWrite(
	ctx context.Context,
	meta txn.TxnMeta,
	req *db.WriteReq,
	resp *db.WriteResp) (err error)

HandleWrite Handle DML commands

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL