state

package
v9.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrEventStorageKeyCreation = libErr.Error("event storage key creation")
	ErrEventStorageRetrieval   = libErr.Error("event storage retrieval")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventProvider

type EventProvider interface {
	GetStorageEvents(meta *types.Metadata, blockHash types.Hash) (*types.StorageDataRaw, error)
}

EventProvider is the interface used for retrieving event data from the storage.

func NewEventProvider

func NewEventProvider(stateRPC state.State) EventProvider

NewEventProvider creates a new EventProvider.

type EventProviderMock

type EventProviderMock struct {
	mock.Mock
}

EventProviderMock is an autogenerated mock type for the EventProvider type

func NewEventProviderMock

func NewEventProviderMock(t NewEventProviderMockT) *EventProviderMock

NewEventProviderMock creates a new instance of EventProviderMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EventProviderMock) GetStorageEvents

func (_m *EventProviderMock) GetStorageEvents(meta *types.Metadata, blockHash types.Hash) (*types.StorageDataRaw, error)

GetStorageEvents provides a mock function with given fields: meta, blockHash

type NewEventProviderMockT

type NewEventProviderMockT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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