mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageRepository

type MessageRepository struct {
	mock.Mock
}

MessageRepository is an autogenerated mock type for the MessageRepository type

func NewMessageRepository

func NewMessageRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MessageRepository

NewMessageRepository creates a new instance of MessageRepository. 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 (*MessageRepository) Ack

func (_m *MessageRepository) Ack(ctx context.Context, id string) error

Ack provides a mock function with given fields: ctx, id

func (*MessageRepository) Create

func (_m *MessageRepository) Create(ctx context.Context, message *domain.Message) error

Create provides a mock function with given fields: ctx, message

func (*MessageRepository) Get

Get provides a mock function with given fields: ctx, id

func (*MessageRepository) List

func (_m *MessageRepository) List(ctx context.Context, queue *domain.Queue, label *string, limit uint) ([]*domain.Message, error)

List provides a mock function with given fields: ctx, queue, label, limit

func (*MessageRepository) Nack

func (_m *MessageRepository) Nack(ctx context.Context, id string, visibilityTimeoutSeconds uint) error

Nack provides a mock function with given fields: ctx, id, visibilityTimeoutSeconds

type MessageService

type MessageService struct {
	mock.Mock
}

MessageService is an autogenerated mock type for the MessageService type

func NewMessageService

func NewMessageService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MessageService

NewMessageService creates a new instance of MessageService. 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 (*MessageService) Ack

func (_m *MessageService) Ack(ctx context.Context, id string) error

Ack provides a mock function with given fields: ctx, id

func (*MessageService) Create

func (_m *MessageService) Create(ctx context.Context, message *domain.Message) error

Create provides a mock function with given fields: ctx, message

func (*MessageService) List

func (_m *MessageService) List(ctx context.Context, queueID string, label *string, limit uint) ([]*domain.Message, error)

List provides a mock function with given fields: ctx, queueID, label, limit

func (*MessageService) Nack

func (_m *MessageService) Nack(ctx context.Context, id string, visibilityTimeoutSeconds uint) error

Nack provides a mock function with given fields: ctx, id, visibilityTimeoutSeconds

type QueueRepository

type QueueRepository struct {
	mock.Mock
}

QueueRepository is an autogenerated mock type for the QueueRepository type

func NewQueueRepository

func NewQueueRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *QueueRepository

NewQueueRepository creates a new instance of QueueRepository. 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 (*QueueRepository) Cleanup

func (_m *QueueRepository) Cleanup(ctx context.Context, id string) error

Cleanup provides a mock function with given fields: ctx, id

func (*QueueRepository) Create

func (_m *QueueRepository) Create(ctx context.Context, queue *domain.Queue) error

Create provides a mock function with given fields: ctx, queue

func (*QueueRepository) Delete

func (_m *QueueRepository) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*QueueRepository) Get

func (_m *QueueRepository) Get(ctx context.Context, id string) (*domain.Queue, error)

Get provides a mock function with given fields: ctx, id

func (*QueueRepository) List

func (_m *QueueRepository) List(ctx context.Context, offset int, limit int) ([]*domain.Queue, error)

List provides a mock function with given fields: ctx, offset, limit

func (*QueueRepository) Purge

func (_m *QueueRepository) Purge(ctx context.Context, id string) error

Purge provides a mock function with given fields: ctx, id

func (*QueueRepository) Stats

func (_m *QueueRepository) Stats(ctx context.Context, id string) (*domain.QueueStats, error)

Stats provides a mock function with given fields: ctx, id

func (*QueueRepository) Update

func (_m *QueueRepository) Update(ctx context.Context, queue *domain.Queue) error

Update provides a mock function with given fields: ctx, queue

type QueueService

type QueueService struct {
	mock.Mock
}

QueueService is an autogenerated mock type for the QueueService type

func NewQueueService

func NewQueueService(t interface {
	mock.TestingT
	Cleanup(func())
}) *QueueService

NewQueueService creates a new instance of QueueService. 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 (*QueueService) Cleanup

func (_m *QueueService) Cleanup(ctx context.Context, id string) error

Cleanup provides a mock function with given fields: ctx, id

func (*QueueService) Create

func (_m *QueueService) Create(ctx context.Context, queue *domain.Queue) error

Create provides a mock function with given fields: ctx, queue

func (*QueueService) Delete

func (_m *QueueService) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*QueueService) Get

func (_m *QueueService) Get(ctx context.Context, id string) (*domain.Queue, error)

Get provides a mock function with given fields: ctx, id

func (*QueueService) List

func (_m *QueueService) List(ctx context.Context, offset int, limit int) ([]*domain.Queue, error)

List provides a mock function with given fields: ctx, offset, limit

func (*QueueService) Purge

func (_m *QueueService) Purge(ctx context.Context, id string) error

Purge provides a mock function with given fields: ctx, id

func (*QueueService) Stats

func (_m *QueueService) Stats(ctx context.Context, id string) (*domain.QueueStats, error)

Stats provides a mock function with given fields: ctx, id

func (*QueueService) Update

func (_m *QueueService) Update(ctx context.Context, queue *domain.Queue) error

Update provides a mock function with given fields: ctx, queue

Jump to

Keyboard shortcuts

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