mocks_sqs

package
v0.12.0-rc.15 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 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 Message

type Message struct {
	Id            *string
	ReceiptHandle *string
	Body          *string
}

type MockSqs

type MockSqs struct {
	sqsiface.SQSAPI
	// contains filtered or unexported fields
}

func NewMockSqs

func NewMockSqs(opts *MockSqsOptions) *MockSqs

func (*MockSqs) DeleteMessage

func (s *MockSqs) DeleteMessage(req *sqs.DeleteMessageInput) (*sqs.DeleteMessageOutput, error)

func (*MockSqs) ListQueues

func (s *MockSqs) ListQueues(in *sqs.ListQueuesInput) (*sqs.ListQueuesOutput, error)

func (*MockSqs) ReceiveMessage

func (s *MockSqs) ReceiveMessage(in *sqs.ReceiveMessageInput) (*sqs.ReceiveMessageOutput, error)

func (*MockSqs) SendMessageBatch

func (s *MockSqs) SendMessageBatch(in *sqs.SendMessageBatchInput) (*sqs.SendMessageBatchOutput, error)

type MockSqsOptions

type MockSqsOptions struct {
	Queues        []string
	Messages      map[string][]*Message
	CompleteError error
}

Jump to

Keyboard shortcuts

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