mocks

package
v1.0.24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageClient

type MessageClient struct {
	mock.Mock
}

MessageClient is an autogenerated mock type for the MessageClient type

func NewMessageClient

func NewMessageClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MessageClient

NewMessageClient creates a new instance of MessageClient. 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 (*MessageClient) Connect

func (_m *MessageClient) Connect() errors.Error

Connect provides a mock function with given fields:

func (*MessageClient) Disconnect

func (_m *MessageClient) Disconnect() errors.Error

Disconnect provides a mock function with given fields:

func (*MessageClient) Publish added in v1.0.7

func (_m *MessageClient) Publish(topic string, message models.MessageEnvelope) errors.Error

Publish provides a mock function with given fields: topic, message

func (*MessageClient) SetAuthData

func (_m *MessageClient) SetAuthData(secretProvider interfaces.SecretProvider) errors.Error

SetAuthData provides a mock function with given fields: secretProvider

func (*MessageClient) Subscribe

func (_m *MessageClient) Subscribe(topics []string, handlerType interface{}) errors.Error

Subscribe provides a mock function with given fields: topics, handlerType

func (*MessageClient) Unsubscribe

func (_m *MessageClient) Unsubscribe(topics []string) errors.Error

Unsubscribe provides a mock function with given fields: topics

Jump to

Keyboard shortcuts

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