mocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSub

type PubSub struct {
	mock.Mock
}

PubSub is an autogenerated mock type for the PubSub type

func NewPubSub

func NewPubSub(t interface {
	mock.TestingT
	Cleanup(func())
}) *PubSub

NewPubSub creates a new instance of PubSub. 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 (*PubSub) Close

func (_m *PubSub) Close() error

Close provides a mock function with given fields:

func (*PubSub) Publish

func (_m *PubSub) Publish(ctx context.Context, topic string, msg *messaging.Message) error

Publish provides a mock function with given fields: ctx, topic, msg

func (*PubSub) Subscribe

func (_m *PubSub) Subscribe(ctx context.Context, cfg messaging.SubscriberConfig) error

Subscribe provides a mock function with given fields: ctx, cfg

func (*PubSub) Unsubscribe

func (_m *PubSub) Unsubscribe(ctx context.Context, id string, topic string) error

Unsubscribe provides a mock function with given fields: ctx, id, topic

Jump to

Keyboard shortcuts

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