impl

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT, Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControl added in v1.3.0

type AccessControl struct {
	Controller string
	ChainID    tableland.ChainID
	TableID    tables.TableID
	Privileges tableland.Privileges
}

AccessControl model.

func AccessControlFromDTO added in v1.3.0

func AccessControlFromDTO(dto AccessControlDTO) (AccessControl, error)

AccessControlFromDTO transforms the DTO to AccessControl model.

type AccessControlDTO added in v1.3.0

type AccessControlDTO struct {
	TableID    int64
	Controller string
	Privileges int
	ChainID    int64
}

AccessControlDTO data structure from database.

type Executor

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

Executor executes chain events.

func NewExecutor

func NewExecutor(
	chainID tableland.ChainID,

	db *database.SQLiteDB,
	parser parsing.SQLValidator,
	maxTableRowCount int,
	acl tableland.ACL,
) (*Executor, error)

NewExecutor returns a new Executor.

func (*Executor) Close

func (ex *Executor) Close(ctx context.Context) error

Close closes the processor gracefully. It will wait for any pending batch to be closed, or until ctx is canceled.

func (*Executor) GetLastExecutedBlockNumber

func (ex *Executor) GetLastExecutedBlockNumber(ctx context.Context) (int64, error)

GetLastExecutedBlockNumber returns the last block number that was successfully executed.

func (*Executor) NewBlockScope

func (ex *Executor) NewBlockScope(ctx context.Context, newBlockNum int64) (executor.BlockScope, error)

NewBlockScope starts a block scope to execute EVM transactions with events.

Jump to

Keyboard shortcuts

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