mock

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service is a mock.

func (*Service) BeginTx

BeginTx is a mock.

func (*Service) CommitTx

func (s *Service) CommitTx(ctx context.Context) error

CommitTx is a mock.

func (*Service) Events

func (s *Service) Events(ctx context.Context, filter *execdb.EventFilter) ([]*execdb.Event, error)

Events is a mock.

func (*Service) Metadata

func (s *Service) Metadata(ctx context.Context, key string) ([]byte, error)

Metadata obtains the JSON value from a metadata key.

func (*Service) SetBlock

func (s *Service) SetBlock(ctx context.Context, block *execdb.Block) error

SetBlock is a mock.

func (*Service) SetBlocks

func (s *Service) SetBlocks(ctx context.Context, blocks []*execdb.Block) error

SetBlocks sets multiple blocks efficiently.

func (*Service) SetEvent

func (s *Service) SetEvent(ctx context.Context, event *execdb.Event) error

SetEvent is a mock.

func (*Service) SetEvents

func (s *Service) SetEvents(ctx context.Context, events []*execdb.Event) error

SetEvents sets is a mock.

func (*Service) SetMetadata

func (s *Service) SetMetadata(ctx context.Context, key string, value []byte) error

SetMetadata sets a metadata key to a JSON value.

func (*Service) SetTransaction

func (s *Service) SetTransaction(ctx context.Context, transaction *execdb.Transaction) error

SetTransaction is a mock.

func (*Service) SetTransactionStateDiff

func (s *Service) SetTransactionStateDiff(ctx context.Context, stateDiff *execdb.TransactionStateDiff) error

SetTransactionStateDiff is a mock.

func (*Service) SetTransactionStateDiffs

func (s *Service) SetTransactionStateDiffs(ctx context.Context, stateDiffs []*execdb.TransactionStateDiff) error

SetTransactionStateDiffs is a mock.

func (*Service) SetTransactions

func (s *Service) SetTransactions(ctx context.Context, transactions []*execdb.Transaction) error

SetTransactions is a mock.

func (*Service) Transaction added in v0.3.2

func (s *Service) Transaction(ctx context.Context, hash []byte) (*execdb.Transaction, error)

Transaction is a mock.

func (*Service) Transactions

func (s *Service) Transactions(ctx context.Context, filter *execdb.TransactionFilter) ([]*execdb.Transaction, error)

Transactions is a mock.

Jump to

Keyboard shortcuts

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