eventsmocks

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: 6 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 Callbacks

type Callbacks struct {
	mock.Mock
}

Callbacks is an autogenerated mock type for the Callbacks type

func NewCallbacks

func NewCallbacks(t interface {
	mock.TestingT
	Cleanup(func())
}) *Callbacks

NewCallbacks creates a new instance of Callbacks. 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 (*Callbacks) ConnectionClosed

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 *core.EventDeliveryResponse)

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

func (*Callbacks) EphemeralSubscription

func (_m *Callbacks) EphemeralSubscription(connID string, namespace string, filter *core.SubscriptionFilter, options *core.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 NewPlugin

func NewPlugin(t interface {
	mock.TestingT
	Cleanup(func())
}) *Plugin

NewPlugin creates a new instance of Plugin. 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 (*Plugin) BatchDeliveryRequest

func (_m *Plugin) BatchDeliveryRequest(ctx context.Context, connID string, sub *core.Subscription, _a3 []*core.CombinedEventDataDelivery) error

BatchDeliveryRequest provides a mock function with given fields: ctx, connID, sub, _a3

func (*Plugin) Capabilities

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

Capabilities provides a mock function with given fields:

func (*Plugin) DeliveryRequest

func (_m *Plugin) DeliveryRequest(ctx context.Context, connID string, sub *core.Subscription, event *core.EventDelivery, data core.DataArray) error

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

func (*Plugin) Init

func (_m *Plugin) Init(ctx context.Context, _a1 config.Section) error

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

func (*Plugin) InitConfig

func (_m *Plugin) InitConfig(_a0 config.Section)

InitConfig provides a mock function with given fields: _a0

func (*Plugin) Name

func (_m *Plugin) Name() string

Name provides a mock function with given fields:

func (*Plugin) NamespaceRestarted

func (_m *Plugin) NamespaceRestarted(ns string, startTime time.Time)

NamespaceRestarted provides a mock function with given fields: ns, startTime

func (*Plugin) SetHandler

func (_m *Plugin) SetHandler(namespace string, handler events.Callbacks) error

SetHandler provides a mock function with given fields: namespace, handler

func (*Plugin) ValidateOptions

func (_m *Plugin) ValidateOptions(ctx context.Context, options *core.SubscriptionOptions) error

ValidateOptions provides a mock function with given fields: ctx, options

Jump to

Keyboard shortcuts

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