Documentation ¶
Index ¶
- type Config
- func (s *Config) ChangeVisibilityTimeout(msg *sqs.Message, seconds int64) bool
- func (s *Config) Delete(msg *sqs.Message) error
- func (s *Config) Enqueue(msgBatch []*sqs.SendMessageBatchRequestEntry) error
- func (s *Config) Poll()
- func (s *Config) RegisterPollHandler(pollHandler func(msg *sqs.Message))
- type SQS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AWSKey string AWSSecret string AWSRegion string // Poll from this SQS URL URL string // Maximum number of time to attempt AWS service connection MaxRetries int // Maximum number of messages to retrieve per batch BatchSize int64 // The maximum poll time (0 <= 20) WaitSeconds int64 // Once a message is received by a consumer, the maximum time in seconds till others can see this VisibilityTimeout int64 // Poll only once and exit RunOnce bool // Poll every X seconds defined by this value RunInterval int // Maximum number of handlers to spawn for batch processing MaxHandlers int // BusyTimeout in seconds BusyTimeout int // contains filtered or unexported fields }
Config Wrapper for Config methods
func (*Config) ChangeVisibilityTimeout ¶ added in v0.2.1
ChangeVisibilityTimeout : Method to change visibility timeout of a message.
func (*Config) Enqueue ¶
func (s *Config) Enqueue(msgBatch []*sqs.SendMessageBatchRequestEntry) error
Enqueue messages to SQS
func (*Config) RegisterPollHandler ¶ added in v0.2.1
RegisterPollHandler : A method to register a custom Poll Handling method
Click to show internal directories.
Click to hide internal directories.