From 38b7c5c2fa59cb142c5646a9be42f4c98eff52f5 Mon Sep 17 00:00:00 2001 From: Jonathan Siegel Date: Sun, 12 Feb 2012 22:40:13 -0800 Subject: [PATCH] Now returns valid responses for GetQueueAttributes --- sqs.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/sqs.go b/sqs.go index caf872f..2e1c74c 100644 --- a/sqs.go +++ b/sqs.go @@ -12,7 +12,7 @@ package sqs import ( "encoding/xml" "fmt" - _ "bytes" + // "bytes" "io/ioutil" // "launchpad.net/goamz/aws" "github.com/usiegj00/goamz-aws" @@ -279,12 +279,20 @@ func (q *Queue) DeleteMessage() error { return nil } +/* +ApproximateNumberOfMessages1766ee54d-c531-4980-90cc-938ff3466e1b + +Body: +29faed75-f44b-4424-a3dd-1beb1439c13a + +*/ + type QueueAttributes struct { + Id string `xml:"ResponseMetadata>RequestId"` Attributes []struct { Name string Value string - } - ResponseMetadata + } `xml:"GetQueueAttributesResult>Attribute"` } // GetQueueAttributes returns one or all attributes of a queue.