Documentation ¶
Index ¶
- Constants
- func ExtructSentTimestamp(msg *types.Message) (int64, error)
- type App
- type BatchItemFailureItem
- type Option
- type OriginalAttributes
- func (attr *OriginalAttributes) DelayDuration(emitInterval, offset time.Duration) time.Duration
- func (attr *OriginalAttributes) EmitTime(emitInterval, offset time.Duration) time.Time
- func (attr *OriginalAttributes) SentTime() time.Time
- func (attr *OriginalAttributes) SetMessageAttribute(attributes map[string]types.MessageAttributeValue) map[string]types.MessageAttributeValue
- type SQSBatchResponse
- type SQSClient
- type SQSEvent
Constants ¶
View Source
const ( OriginalMessageSentTimestampAttributeKey = "OriginalSentTimestamp" OriginalMessageIDAttributeKey = "OriginalMessageID" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func NewWithClient ¶
func (*App) HandleMessage ¶
func (*App) LambdaHandler ¶
type BatchItemFailureItem ¶
type BatchItemFailureItem struct {
ItemIdentifier string `json:"itemIdentifier"`
}
type Option ¶
type Option struct { IncomingQueueURL string OutgoingQueueURL string IncomingQueueName string OutgoingQueueName string EmitInterval time.Duration Offset time.Duration }
Option represents option values of app
type OriginalAttributes ¶
func ExtructOriginalAttribute ¶
func ExtructOriginalAttribute(msg *types.Message) (*OriginalAttributes, error)
func (*OriginalAttributes) DelayDuration ¶
func (attr *OriginalAttributes) DelayDuration(emitInterval, offset time.Duration) time.Duration
func (*OriginalAttributes) EmitTime ¶
func (attr *OriginalAttributes) EmitTime(emitInterval, offset time.Duration) time.Time
func (*OriginalAttributes) SentTime ¶
func (attr *OriginalAttributes) SentTime() time.Time
func (*OriginalAttributes) SetMessageAttribute ¶
func (attr *OriginalAttributes) SetMessageAttribute(attributes map[string]types.MessageAttributeValue) map[string]types.MessageAttributeValue
type SQSBatchResponse ¶
type SQSBatchResponse struct {
BatchItemFailures []BatchItemFailureItem `json:"batchItemFailures,omitempty"`
}
type SQSClient ¶
type SQSClient interface { SendMessage(ctx context.Context, params *sqs.SendMessageInput, optFns ...func(*sqs.Options)) (*sqs.SendMessageOutput, error) ReceiveMessage(ctx context.Context, params *sqs.ReceiveMessageInput, optFns ...func(*sqs.Options)) (*sqs.ReceiveMessageOutput, error) DeleteMessage(ctx context.Context, params *sqs.DeleteMessageInput, optFns ...func(*sqs.Options)) (*sqs.DeleteMessageOutput, error) GetQueueUrl(ctx context.Context, params *sqs.GetQueueUrlInput, optFns ...func(*sqs.Options)) (*sqs.GetQueueUrlOutput, error) }
Click to show internal directories.
Click to hide internal directories.