Documentation ¶
Overview ¶
gosqs - Go packages to interact with the Amazon SQS Web Services.
depends on https://wiki.ubuntu.com/goamz
Written by Prudhvi Krishna Surapaneni <me@prudhvi.net> Extended by Fabrizio Milo <mistobaan@gmail.com>
Index ¶
- type Attribute
- type ChangeMessageVisibilityResponse
- type CreateQueueResponse
- type DeleteMessageBatchResponse
- type DeleteMessageResponse
- type DeleteQueueResponse
- type Error
- type GetQueueAttributesResponse
- type GetQueueUrlResponse
- type ListQueuesResponse
- type Message
- type MessageAttribute
- type MessageAttributeValue
- type PurgeQueueResponse
- type Queue
- func (q *Queue) ChangeMessageVisibility(M *Message, VisibilityTimeout int) (resp *ChangeMessageVisibilityResponse, err error)
- func (q *Queue) Delete() (resp *DeleteQueueResponse, err error)
- func (q *Queue) DeleteMessage(M *Message) (resp *DeleteMessageResponse, err error)
- func (q *Queue) DeleteMessageBatch(msgList []Message) (resp *DeleteMessageBatchResponse, err error)
- func (q *Queue) GetQueueAttributes(A string) (resp *GetQueueAttributesResponse, err error)
- func (q *Queue) PurgeQueue() (resp *PurgeQueueResponse, err error)
- func (q *Queue) ReceiveMessage(MaxNumberOfMessages int) (*ReceiveMessageResponse, error)
- func (q *Queue) ReceiveMessageWithParameters(p map[string]string) (resp *ReceiveMessageResponse, err error)
- func (q *Queue) ReceiveMessageWithVisibilityTimeout(MaxNumberOfMessages, VisibilityTimeoutSec int) (*ReceiveMessageResponse, error)
- func (q *Queue) SendMessage(MessageBody string) (resp *SendMessageResponse, err error)
- func (q *Queue) SendMessageBatch(msgList []Message) (resp *SendMessageBatchResponse, err error)
- func (q *Queue) SendMessageBatchString(msgList []string) (resp *SendMessageBatchResponse, err error)
- func (q *Queue) SendMessageBatchWithAttributes(msgList []Message, MessageAttributes map[string]string) (resp *SendMessageBatchResponse, err error)
- func (q *Queue) SendMessageWithAttributes(MessageBody string, MessageAttributes map[string]string) (resp *SendMessageResponse, err error)
- func (q *Queue) SendMessageWithDelay(MessageBody string, DelaySeconds int64) (resp *SendMessageResponse, err error)
- func (q *Queue) SetQueueAttributes(attrs map[string]string) (resp *SetQueueAttributesResponse, err error)
- type ReceiveMessageResponse
- type ResponseMetadata
- type SQS
- func (s *SQS) CreateQueue(queueName string) (*Queue, error)
- func (s *SQS) CreateQueueWithAttributes(queueName string, attrs map[string]string) (q *Queue, err error)
- func (s *SQS) CreateQueueWithTimeout(queueName string, timeout int) (*Queue, error)
- func (s *SQS) GetQueue(queueName string) (*Queue, error)
- func (s *SQS) ListQueues(QueueNamePrefix string) (resp *ListQueuesResponse, err error)
- func (s *SQS) QueueFromUrl(queueUrl string) (q *Queue)
- type SendMessageBatchResponse
- type SendMessageBatchResultEntry
- type SendMessageResponse
- type SetQueueAttributesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeMessageVisibilityResponse ¶
type ChangeMessageVisibilityResponse struct {
ResponseMetadata ResponseMetadata
}
type CreateQueueResponse ¶
type CreateQueueResponse struct { QueueUrl string `xml:"CreateQueueResult>QueueUrl"` ResponseMetadata ResponseMetadata }
type DeleteMessageBatchResponse ¶
type DeleteMessageBatchResponse struct { DeleteMessageBatchResult []struct { Id string SenderFault bool Code string Message string } `xml:"DeleteMessageBatchResult>DeleteMessageBatchResultEntry"` ResponseMetadata ResponseMetadata }
type DeleteMessageResponse ¶
type DeleteMessageResponse struct {
ResponseMetadata ResponseMetadata
}
type DeleteQueueResponse ¶
type DeleteQueueResponse struct {
ResponseMetadata ResponseMetadata
}
type GetQueueAttributesResponse ¶
type GetQueueAttributesResponse struct { Attributes []Attribute `xml:"GetQueueAttributesResult>Attribute"` ResponseMetadata ResponseMetadata }
type GetQueueUrlResponse ¶
type GetQueueUrlResponse struct { QueueUrl string `xml:"GetQueueUrlResult>QueueUrl"` ResponseMetadata ResponseMetadata }
type ListQueuesResponse ¶
type ListQueuesResponse struct { QueueUrl []string `xml:"ListQueuesResult>QueueUrl"` ResponseMetadata ResponseMetadata }
type MessageAttribute ¶
type MessageAttribute struct { Name string `xml:"Name"` Value MessageAttributeValue `xml:"Value"` }
type MessageAttributeValue ¶
type PurgeQueueResponse ¶
type PurgeQueueResponse struct {
ResponseMetadata ResponseMetadata
}
type Queue ¶
Queue Reference to a Queue
func (*Queue) ChangeMessageVisibility ¶
func (q *Queue) ChangeMessageVisibility(M *Message, VisibilityTimeout int) (resp *ChangeMessageVisibilityResponse, err error)
func (*Queue) Delete ¶
func (q *Queue) Delete() (resp *DeleteQueueResponse, err error)
func (*Queue) DeleteMessage ¶
func (q *Queue) DeleteMessage(M *Message) (resp *DeleteMessageResponse, err error)
func (*Queue) DeleteMessageBatch ¶
func (q *Queue) DeleteMessageBatch(msgList []Message) (resp *DeleteMessageBatchResponse, err error)
DeleteMessageBatch
func (*Queue) GetQueueAttributes ¶
func (q *Queue) GetQueueAttributes(A string) (resp *GetQueueAttributesResponse, err error)
func (*Queue) PurgeQueue ¶
func (q *Queue) PurgeQueue() (resp *PurgeQueueResponse, err error)
func (*Queue) ReceiveMessage ¶
func (q *Queue) ReceiveMessage(MaxNumberOfMessages int) (*ReceiveMessageResponse, error)
ReceiveMessage
func (*Queue) ReceiveMessageWithParameters ¶
func (q *Queue) ReceiveMessageWithParameters(p map[string]string) (resp *ReceiveMessageResponse, err error)
func (*Queue) ReceiveMessageWithVisibilityTimeout ¶
func (q *Queue) ReceiveMessageWithVisibilityTimeout(MaxNumberOfMessages, VisibilityTimeoutSec int) (*ReceiveMessageResponse, error)
ReceiveMessageWithVisibilityTimeout
func (*Queue) SendMessage ¶
func (q *Queue) SendMessage(MessageBody string) (resp *SendMessageResponse, err error)
func (*Queue) SendMessageBatch ¶
func (q *Queue) SendMessageBatch(msgList []Message) (resp *SendMessageBatchResponse, err error)
SendMessageBatch
func (*Queue) SendMessageBatchString ¶
func (q *Queue) SendMessageBatchString(msgList []string) (resp *SendMessageBatchResponse, err error)
SendMessageBatchString
func (*Queue) SendMessageBatchWithAttributes ¶
func (q *Queue) SendMessageBatchWithAttributes(msgList []Message, MessageAttributes map[string]string) (resp *SendMessageBatchResponse, err error)
SendMessageBatchWithAttributes
func (*Queue) SendMessageWithAttributes ¶
func (*Queue) SendMessageWithDelay ¶
func (q *Queue) SendMessageWithDelay(MessageBody string, DelaySeconds int64) (resp *SendMessageResponse, err error)
func (*Queue) SetQueueAttributes ¶
func (q *Queue) SetQueueAttributes(attrs map[string]string) (resp *SetQueueAttributesResponse, err error)
type ReceiveMessageResponse ¶
type ReceiveMessageResponse struct { Messages []Message `xml:"ReceiveMessageResult>Message"` ResponseMetadata ResponseMetadata }
type ResponseMetadata ¶
type SQS ¶
The SQS type encapsulates operation with an SQS region.
func (*SQS) CreateQueue ¶
CreateQueue create a queue with a specific name
func (*SQS) CreateQueueWithAttributes ¶
func (*SQS) CreateQueueWithTimeout ¶
CreateQueue create a queue with a specific name and a timeout
func (*SQS) ListQueues ¶
func (s *SQS) ListQueues(QueueNamePrefix string) (resp *ListQueuesResponse, err error)
func (*SQS) QueueFromUrl ¶
type SendMessageBatchResponse ¶
type SendMessageBatchResponse struct { SendMessageBatchResult []SendMessageBatchResultEntry `xml:"SendMessageBatchResult>SendMessageBatchResultEntry"` ResponseMetadata ResponseMetadata }
type SendMessageResponse ¶
type SendMessageResponse struct { AttributeMD5 string `xml:"SendMessageResult>MD5OfMessageAttributes"` MD5 string `xml:"SendMessageResult>MD5OfMessageBody"` Id string `xml:"SendMessageResult>MessageId"` ResponseMetadata ResponseMetadata }
type SetQueueAttributesResponse ¶
type SetQueueAttributesResponse struct {
ResponseMetadata ResponseMetadata
}
Click to show internal directories.
Click to hide internal directories.