Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: inssqs.go
Generated by this command:
mockgen --source=inssqs.go
Package mock_inssqs is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrQueueNameNotSet = errors.New("queue name not set")
var ErrRegionNotSet = errors.New("region not set")
var ErrRetryCountExceeded = errors.New("retry count exceeded")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Region string // AWS region where the SQS queue resides. QueueName string // Name of the SQS queue. RetryCount int // Number of retry attempts allowed for queue operations. MaxBatchSize int // Maximum size of a message batch. MaxBatchSizeBytes int // Maximum size of a message batch in bytes. MaxWorkers int // Maximum number of workers for concurrent operations. LogLevel string // Log level for SQS operations. EndpointUrl string // Endpoint URL for AWS operations. }
Config represents the configuration settings required for initializing an SQS queue.
type FakeQueue ¶
type FakeQueue struct { Interface Data []SQSMessageEntry }
func (*FakeQueue) DeleteMessageBatch ¶
func (q *FakeQueue) DeleteMessageBatch(entries []SQSDeleteMessageEntry) (failed []SQSDeleteMessageEntry, err error)
func (*FakeQueue) SendMessageBatch ¶
func (q *FakeQueue) SendMessageBatch(entries []SQSMessageEntry) (failed []SQSMessageEntry, err error)
type Interface ¶
type Interface interface { SendMessageBatch(entries []SQSMessageEntry) (failed []SQSMessageEntry, err error) DeleteMessageBatch(entries []SQSDeleteMessageEntry) (failed []SQSDeleteMessageEntry, err error) }
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) DeleteMessageBatch ¶
func (m *MockInterface) DeleteMessageBatch(entries []SQSDeleteMessageEntry) ([]SQSDeleteMessageEntry, error)
DeleteMessageBatch mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) SendMessageBatch ¶
func (m *MockInterface) SendMessageBatch(entries []SQSMessageEntry) ([]SQSMessageEntry, error)
SendMessageBatch mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) DeleteMessageBatch ¶
func (mr *MockInterfaceMockRecorder) DeleteMessageBatch(entries any) *gomock.Call
DeleteMessageBatch indicates an expected call of DeleteMessageBatch.
func (*MockInterfaceMockRecorder) SendMessageBatch ¶
func (mr *MockInterfaceMockRecorder) SendMessageBatch(entries any) *gomock.Call
SendMessageBatch indicates an expected call of SendMessageBatch.