Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType uint8
const ( ActionTypeClosed ActionType ActionTypeReceivingMessage ActionTypeReceivedMessage ActionTypeChangingMessageVisibilityTimeout ActionTypeChangedMessageVisibilityTimeout ActionTypeDeletingMessage ActionTypeDeletedMessage )
type LogMessage ¶
type LogMessage struct { ActionType ActionType `json:"action_type"` Detail any `json:"detail"` }
LogMessage
type ReceiveController ¶
ReceiveController
func NewReceiveController ¶
func NewReceiveController(c *sqs.Client, cfg *ReceiveControllerConfig) ReceiveController
type ReceiveControllerConfig ¶
type ReceiveControllerConfig struct { // QueueURL (required) QueueURL string // ReceiveOption (required) ReceiveOption ReceiveOption }
type ReceiveOption ¶
type ReceiveOption struct { // MaxNumberOfMessages (default: 1) MaxNumberOfMessages int32 // VisibilityTimeout (default: 30s) VisibilityTimeout int32 // WaitTimeSeconds (default: 20s) WaitTimeSeconds int32 // DoChangeMessageVisibolity (default: false) DoChangeMessageVisibolity bool // ChangeMessageVisibilityAfter (default: 0) ChangeMessageVisibilityAfter time.Duration }
func NewDefaultReceiveOption ¶
func NewDefaultReceiveOption() ReceiveOption
Click to show internal directories.
Click to hide internal directories.