mock

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 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 (*Service) CommitTx(_ context.Context) error

CommitTx is a mock.

func (*Service) Events

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

Events is a mock.

func (*Service) Metadata

func (*Service) Metadata(_ context.Context, _ string) ([]byte, error)

Metadata obtains the JSON value from a metadata key.

func (*Service) SetBlock

func (*Service) SetBlock(_ context.Context, _ *execdb.Block) error

SetBlock is a mock.

func (*Service) SetBlocks

func (*Service) SetBlocks(_ context.Context, _ []*execdb.Block) error

SetBlocks sets multiple blocks efficiently.

func (*Service) SetEvent

func (*Service) SetEvent(_ context.Context, _ *execdb.Event) error

SetEvent is a mock.

func (*Service) SetEvents

func (*Service) SetEvents(_ context.Context, _ []*execdb.Event) error

SetEvents sets is a mock.

func (*Service) SetMetadata

func (*Service) SetMetadata(_ context.Context, _ string, _ []byte) error

SetMetadata sets a metadata key to a JSON value.

func (*Service) SetTransaction

func (*Service) SetTransaction(_ context.Context, _ *execdb.Transaction) error

SetTransaction is a mock.

func (*Service) SetTransactionStateDiff

func (*Service) SetTransactionStateDiff(_ context.Context, _ *execdb.TransactionStateDiff) error

SetTransactionStateDiff is a mock.

func (*Service) SetTransactionStateDiffs

func (*Service) SetTransactionStateDiffs(_ context.Context, _ []*execdb.TransactionStateDiff) error

SetTransactionStateDiffs is a mock.

func (*Service) SetTransactions

func (*Service) SetTransactions(_ context.Context, _ []*execdb.Transaction) error

SetTransactions is a mock.

func (*Service) Transaction added in v0.3.2

func (*Service) Transaction(_ context.Context, _ []byte) (*execdb.Transaction, error)

Transaction is a mock.

func (*Service) Transactions

Transactions is a mock.

Jump to

Keyboard shortcuts

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