Documentation
¶
Index ¶
- func GetQueuePrefix() string
- func Long(v int) *int64
- func String(v string) *string
- type AmazonSQS
- type Message
- type Queue
- func (q *Queue) AddDeleteList(msg interface{})
- func (q *Queue) AddMessage(message string)
- func (q *Queue) AddMessageMap(message map[string]interface{}) error
- func (q *Queue) AutoDelete(b bool)
- func (q *Queue) CountMessage() (int, int, error)
- func (q *Queue) DeleteListItems() error
- func (q *Queue) DeleteMessage(msg *Message) error
- func (q *Queue) Fetch(num int) ([]*Message, error)
- func (q *Queue) FetchBody(num int) []string
- func (q *Queue) FetchBodyOne() string
- func (q *Queue) FetchOne() (*Message, error)
- func (q *Queue) Purge() error
- func (q *Queue) Send() error
- func (q *Queue) SetExpire(sec int)
- type SQSError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AmazonSQS ¶
type AmazonSQS struct {
// contains filtered or unexported fields
}
func (*AmazonSQS) CreateQueue ¶
func (svc *AmazonSQS) CreateQueue(in *SDK.CreateQueueInput) error
Create new SQS Queue
func (*AmazonSQS) CreateQueueWithName ¶
CreateQueueWithName creates new SQS Queue by the name
type Message ¶ added in v0.9.2
type Message struct {
// contains filtered or unexported fields
}
SQS Message wrapper struct
func NewMessage ¶ added in v0.9.2
func (Message) GetMessageID ¶ added in v0.9.2
func (Message) GetReceiptHandle ¶ added in v0.9.2
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
SQS Queue wrapper struct
func (*Queue) AddDeleteList ¶
func (q *Queue) AddDeleteList(msg interface{})
Add a message to the delete spool
func (*Queue) AddMessageMap ¶
Add message spool from map data
func (*Queue) CountMessage ¶
Count left messages on the Queue
func (*Queue) DeleteListItems ¶
Execute delete operation in the delete spool
func (*Queue) DeleteMessage ¶
Delete a message from server
func (*Queue) FetchBody ¶
Get only the body of messages ** cannot handle deletion manually as lack of MessageId and ReceiptHandle **
func (*Queue) FetchBodyOne ¶
Get the body of a single message ** cannot handle deletion manually as lack of MessageId and ReceiptHandle **
type SQSError ¶ added in v0.9.2
type SQSError struct {
// contains filtered or unexported fields
}
func NewErrorList ¶ added in v0.9.2
func (*SQSError) AddMessage ¶ added in v0.9.2
Click to show internal directories.
Click to hide internal directories.