NewSQS creates a new SQS client that satisfies the Queue interface
(queueURL string, sess *session.Session)
| 34 | |
| 35 | // NewSQS creates a new SQS client that satisfies the Queue interface |
| 36 | func NewSQS(queueURL string, sess *session.Session) Queue { |
| 37 | client := awssqs.New(sess) |
| 38 | |
| 39 | return &sqs{queueURL: queueURL, client: client} |
| 40 | } |
| 41 | |
| 42 | // SendMessage sends a string |
| 43 | func (q *sqs) SendMessage(message string, uniqueID string) error { |