summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/goamz/goamz/sqs/README.md
blob: a283a4eec8b065f4504c6dbc282410f5318c8e4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Amazon Simple Queue Service API Client Written in Golang.
=========================================================

Merged from https://github.com/Mistobaan/sqs

Installation
------------

    go get github.com/goamz/goamz/sqs

Documentation
-------------

http://godoc.org/github.com/goamz/goamz/sqs


Sample Usage
------------

    var auth = aws.Auth{
      AccessKey: os.Getenv("AWS_ACCESS_KEY_ID"),
      SecretKey: os.Getenv("AWS_SECRET_ACCESS_KEY"),
    }

    conn := sqs.New(auth, aws.USEast)

    q, err := conn.CreateQueue(queueName)
    if err != nil {
      log.Fatalf(err.Error())
    }

    q.SendMessage(batch)


Testing
-------

    go test .