mocks

package
v3.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	mock.Mock
}

RedisClient is an autogenerated mock type for the RedisClient type

func NewRedisClient

func NewRedisClient(t mockConstructorTestingTNewRedisClient) *RedisClient

NewRedisClient creates a new instance of RedisClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RedisClient) Close

func (_m *RedisClient) Close() error

Close provides a mock function with given fields:

func (*RedisClient) Receive

func (_m *RedisClient) Receive(topic string) (*types.MessageEnvelope, error)

Receive provides a mock function with given fields: topic

func (*RedisClient) Send

func (_m *RedisClient) Send(topic string, message types.MessageEnvelope) error

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

func (*RedisClient) Subscribe

func (_m *RedisClient) Subscribe(topic string) error

Subscribe provides a mock function with given fields: topic

func (*RedisClient) Unsubscribe

func (_m *RedisClient) Unsubscribe(topic string)

Unsubscribe provides a mock function with given fields: topic

Jump to

Keyboard shortcuts

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