mocks

package
v0.0.0-...-b8ff64e Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocks provides SQS interface mocks for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQS

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

SQS is an implmentation of a mock sqs interface

func (*SQS) GetQueueUrl

func (s *SQS) GetQueueUrl(in *sqs.GetQueueUrlInput) (*sqs.GetQueueUrlOutput, error)

GetQueueUrl mocks the SQS GetQueueUrl method and just prefixes the queueName with "local://"

func (*SQS) SendMessage

func (s *SQS) SendMessage(in *sqs.SendMessageInput) (*sqs.SendMessageOutput, error)

SendMessage mocks the SQS SendMessage by storing the message body in the mock object and calculating the message body MD5

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳