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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.