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
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 ¶
Close closes the processor gracefully. It will wait for any pending batch to be closed, or until ctx is canceled.
func (*Executor) GetLastExecutedBlockNumber ¶
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.
Click to show internal directories.
Click to hide internal directories.