eventmocks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventManager

type EventManager struct {
	mock.Mock
}

EventManager is an autogenerated mock type for the EventManager type

func NewEventManager

func NewEventManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventManager

NewEventManager creates a new instance of EventManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventManager) AddSystemEventListener

func (_m *EventManager) AddSystemEventListener(ns string, el system.EventListener) error

AddSystemEventListener provides a mock function with given fields: ns, el

func (*EventManager) BlockchainEventBatch

func (_m *EventManager) BlockchainEventBatch(batch []*blockchain.EventToDispatch) error

BlockchainEventBatch provides a mock function with given fields: batch

func (*EventManager) CreateUpdateDurableSubscription

func (_m *EventManager) CreateUpdateDurableSubscription(ctx context.Context, subDef *core.Subscription, mustNew bool) error

CreateUpdateDurableSubscription provides a mock function with given fields: ctx, subDef, mustNew

func (*EventManager) DXEvent

func (_m *EventManager) DXEvent(plugin dataexchange.Plugin, event dataexchange.DXEvent) error

DXEvent provides a mock function with given fields: plugin, event

func (*EventManager) DeleteDurableSubscription

func (_m *EventManager) DeleteDurableSubscription(ctx context.Context, subDef *core.Subscription) error

DeleteDurableSubscription provides a mock function with given fields: ctx, subDef

func (*EventManager) DeletedSubscriptions

func (_m *EventManager) DeletedSubscriptions() chan<- *fftypes.UUID

DeletedSubscriptions provides a mock function with given fields:

func (*EventManager) EnrichEvent

func (_m *EventManager) EnrichEvent(ctx context.Context, event *core.Event) (*core.EnrichedEvent, error)

EnrichEvent provides a mock function with given fields: ctx, event

func (*EventManager) EnrichEvents

func (_m *EventManager) EnrichEvents(ctx context.Context, _a1 []*core.Event) ([]*core.EnrichedEvent, error)

EnrichEvents provides a mock function with given fields: ctx, _a1

func (*EventManager) FilterHistoricalEventsOnSubscription

func (_m *EventManager) FilterHistoricalEventsOnSubscription(ctx context.Context, _a1 []*core.EnrichedEvent, sub *core.Subscription) ([]*core.EnrichedEvent, error)

FilterHistoricalEventsOnSubscription provides a mock function with given fields: ctx, _a1, sub

func (*EventManager) GetPlugins

func (_m *EventManager) GetPlugins() []*core.NamespaceStatusPlugin

GetPlugins provides a mock function with given fields:

func (*EventManager) NewEvents

func (_m *EventManager) NewEvents() chan<- int64

NewEvents provides a mock function with given fields:

func (*EventManager) NewPins

func (_m *EventManager) NewPins() chan<- int64

NewPins provides a mock function with given fields:

func (*EventManager) NewSubscriptions

func (_m *EventManager) NewSubscriptions() chan<- *fftypes.UUID

NewSubscriptions provides a mock function with given fields:

func (*EventManager) QueueBatchRewind

func (_m *EventManager) QueueBatchRewind(batchID *fftypes.UUID)

QueueBatchRewind provides a mock function with given fields: batchID

func (*EventManager) ResolveTransportAndCapabilities

func (_m *EventManager) ResolveTransportAndCapabilities(ctx context.Context, transportName string) (string, *pkgevents.Capabilities, error)

ResolveTransportAndCapabilities provides a mock function with given fields: ctx, transportName

func (*EventManager) SharedStorageBatchDownloaded

func (_m *EventManager) SharedStorageBatchDownloaded(ss sharedstorage.Plugin, payloadRef string, data []byte) (*fftypes.UUID, error)

SharedStorageBatchDownloaded provides a mock function with given fields: ss, payloadRef, data

func (*EventManager) SharedStorageBlobDownloaded

func (_m *EventManager) SharedStorageBlobDownloaded(ss sharedstorage.Plugin, hash fftypes.Bytes32, size int64, payloadRef string, dataID *fftypes.UUID) error

SharedStorageBlobDownloaded provides a mock function with given fields: ss, hash, size, payloadRef, dataID

func (*EventManager) Start

func (_m *EventManager) Start() error

Start provides a mock function with given fields:

func (*EventManager) SubscriptionUpdates

func (_m *EventManager) SubscriptionUpdates() chan<- *fftypes.UUID

SubscriptionUpdates provides a mock function with given fields:

func (*EventManager) TokenPoolCreated

func (_m *EventManager) TokenPoolCreated(ctx context.Context, ti tokens.Plugin, pool *tokens.TokenPool) error

TokenPoolCreated provides a mock function with given fields: ctx, ti, pool

func (*EventManager) TokensApproved

func (_m *EventManager) TokensApproved(ti tokens.Plugin, approval *tokens.TokenApproval) error

TokensApproved provides a mock function with given fields: ti, approval

func (*EventManager) TokensTransferred

func (_m *EventManager) TokensTransferred(ti tokens.Plugin, transfer *tokens.TokenTransfer) error

TokensTransferred provides a mock function with given fields: ti, transfer

func (*EventManager) WaitStop

func (_m *EventManager) WaitStop()

WaitStop provides a mock function with given fields:

Jump to

Keyboard shortcuts

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