fake

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	mock.Mock
}

Router is an autogenerated mock type for the Router type

func NewRouter

func NewRouter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Router

NewRouter creates a new instance of Router. 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 (*Router) Commit

func (_m *Router) Commit(ctx context.Context, m loafergo.Message) error

Commit provides a mock function with given fields: ctx, m

func (*Router) Configure

func (_m *Router) Configure(ctx context.Context) error

Configure provides a mock function with given fields: ctx

func (*Router) GetMessages

func (_m *Router) GetMessages(ctx context.Context) ([]loafergo.Message, error)

GetMessages provides a mock function with given fields: ctx

func (*Router) HandlerMessage

func (_m *Router) HandlerMessage(ctx context.Context, msg loafergo.Message) error

HandlerMessage provides a mock function with given fields: ctx, msg

func (*Router) WorkerPoolSize added in v1.2.1

func (_m *Router) WorkerPoolSize(ctx context.Context) int32

WorkerPoolSize provides a mock function with given fields: ctx

type SQSClient

type SQSClient struct {
	mock.Mock
}

SQSClient is an autogenerated mock type for the SQSClient type

func NewSQSClient

func NewSQSClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SQSClient

NewSQSClient creates a new instance of SQSClient. 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 (*SQSClient) ChangeMessageVisibility

func (_m *SQSClient) ChangeMessageVisibility(ctx context.Context, params *sqs.ChangeMessageVisibilityInput, optFns ...func(*sqs.Options)) (*sqs.ChangeMessageVisibilityOutput, error)

ChangeMessageVisibility provides a mock function with given fields: ctx, params, optFns

func (*SQSClient) DeleteMessage

func (_m *SQSClient) DeleteMessage(ctx context.Context, params *sqs.DeleteMessageInput, optFns ...func(*sqs.Options)) (*sqs.DeleteMessageOutput, error)

DeleteMessage provides a mock function with given fields: ctx, params, optFns

func (*SQSClient) GetQueueUrl

func (_m *SQSClient) GetQueueUrl(ctx context.Context, params *sqs.GetQueueUrlInput, optFns ...func(*sqs.Options)) (*sqs.GetQueueUrlOutput, error)

GetQueueUrl provides a mock function with given fields: ctx, params, optFns

func (*SQSClient) ReceiveMessage

func (_m *SQSClient) ReceiveMessage(ctx context.Context, params *sqs.ReceiveMessageInput, optFns ...func(*sqs.Options)) (*sqs.ReceiveMessageOutput, error)

ReceiveMessage provides a mock function with given fields: ctx, params, optFns

Jump to

Keyboard shortcuts

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