eventsmocks

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callbacks

type Callbacks struct {
	mock.Mock
}

Callbacks is an autogenerated mock type for the Callbacks type

func (*Callbacks) ConnectionClosed added in v1.0.0

func (_m *Callbacks) ConnectionClosed(connID string)

ConnectionClosed provides a mock function with given fields: connID

func (*Callbacks) DeliveryResponse

func (_m *Callbacks) DeliveryResponse(connID string, inflight *fftypes.EventDeliveryResponse)

DeliveryResponse provides a mock function with given fields: connID, inflight

func (*Callbacks) EphemeralSubscription

func (_m *Callbacks) EphemeralSubscription(connID string, namespace string, filter *fftypes.SubscriptionFilter, options *fftypes.SubscriptionOptions) error

EphemeralSubscription provides a mock function with given fields: connID, namespace, filter, options

func (*Callbacks) RegisterConnection

func (_m *Callbacks) RegisterConnection(connID string, matcher events.SubscriptionMatcher) error

RegisterConnection provides a mock function with given fields: connID, matcher

type Plugin

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func (*Plugin) Capabilities

func (_m *Plugin) Capabilities() *events.Capabilities

Capabilities provides a mock function with given fields:

func (*Plugin) DeliveryRequest

func (_m *Plugin) DeliveryRequest(connID string, sub *fftypes.Subscription, event *fftypes.EventDelivery, data fftypes.DataArray) error

DeliveryRequest provides a mock function with given fields: connID, sub, event, data

func (*Plugin) GetOptionsSchema

func (_m *Plugin) GetOptionsSchema(_a0 context.Context) string

GetOptionsSchema provides a mock function with given fields: _a0

func (*Plugin) Init

func (_m *Plugin) Init(ctx context.Context, prefix config.Prefix, callbacks events.Callbacks) error

Init provides a mock function with given fields: ctx, prefix, callbacks

func (*Plugin) InitPrefix

func (_m *Plugin) InitPrefix(prefix config.Prefix)

InitPrefix provides a mock function with given fields: prefix

func (*Plugin) Name

func (_m *Plugin) Name() string

Name provides a mock function with given fields:

func (*Plugin) ValidateOptions

func (_m *Plugin) ValidateOptions(options *fftypes.SubscriptionOptions) error

ValidateOptions provides a mock function with given fields: options

Jump to

Keyboard shortcuts

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