executor

package
v0.0.0-...-6a9e591 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AriaLikeBatchExecutor

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

func NewAriaLikeBatchExecutor

func NewAriaLikeBatchExecutor(txExecMgr *TransactionExecutorManager) *AriaLikeBatchExecutor

func (*AriaLikeBatchExecutor) Execute

type BatchExecutor

type BatchExecutor interface {
	// Execute executes the a batch of transactions and generate the execution result(rwset)
	Execute(batch transaction.Batch) *committer.BatchExecutionResult
}

type InProcTransactionExecutor

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

func NewInProcTransactionExecutor

func NewInProcTransactionExecutor(storage storage.Storage, contracts map[string]contract.Contract) *InProcTransactionExecutor

func (*InProcTransactionExecutor) Execute

func (ipe *InProcTransactionExecutor) Execute(context *transaction.Context)

type TransactionExecutor

type TransactionExecutor interface {
	// Execute executes a transaction and generate the execution result(rwset)
	Execute(context *transaction.Context)
}

type TransactionExecutorManager

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

func NewTransactionExecutorManager

func NewTransactionExecutorManager(executors map[int]TransactionExecutor) *TransactionExecutorManager

func (*TransactionExecutorManager) Execute

func (tem *TransactionExecutorManager) Execute(context *transaction.Context)

Jump to

Keyboard shortcuts

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