Documentation ¶
Index ¶
- type Service
- func (s *Service) BeginTx(ctx context.Context) (context.Context, context.CancelFunc, error)
- func (s *Service) CommitTx(ctx context.Context) error
- func (s *Service) Events(ctx context.Context, filter *execdb.EventFilter) ([]*execdb.Event, error)
- func (s *Service) Metadata(ctx context.Context, key string) ([]byte, error)
- func (s *Service) SetBlock(ctx context.Context, block *execdb.Block) error
- func (s *Service) SetBlocks(ctx context.Context, blocks []*execdb.Block) error
- func (s *Service) SetEvent(ctx context.Context, event *execdb.Event) error
- func (s *Service) SetEvents(ctx context.Context, events []*execdb.Event) error
- func (s *Service) SetMetadata(ctx context.Context, key string, value []byte) error
- func (s *Service) SetTransaction(ctx context.Context, transaction *execdb.Transaction) error
- func (s *Service) SetTransactionStateDiff(ctx context.Context, stateDiff *execdb.TransactionStateDiff) error
- func (s *Service) SetTransactionStateDiffs(ctx context.Context, stateDiffs []*execdb.TransactionStateDiff) error
- func (s *Service) SetTransactions(ctx context.Context, transactions []*execdb.Transaction) error
- func (s *Service) Transaction(ctx context.Context, hash []byte) (*execdb.Transaction, error)
- func (s *Service) Transactions(ctx context.Context, filter *execdb.TransactionFilter) ([]*execdb.Transaction, error)
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) SetMetadata ¶
SetMetadata sets a metadata key to a JSON value.
func (*Service) SetTransaction ¶
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 ¶
SetTransactions is a mock.
func (*Service) Transaction ¶ added in v0.3.2
Transaction is a mock.
func (*Service) Transactions ¶
func (s *Service) Transactions(ctx context.Context, filter *execdb.TransactionFilter) ([]*execdb.Transaction, error)
Transactions is a mock.
Click to show internal directories.
Click to hide internal directories.