Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { WaitTimeSeconds int64 VisibilityTimeout int64 MaxNumberOfMessages int64 Region string QueueURL string AccessKeyID string SecretKey string // contains filtered or unexported fields }
Configuration is a struct containing options to construct a poller with
type Handler ¶
type Handler interface {
Handle(message *string)
}
Handler is the interface that will handle all SQS messages
type SqsQueue ¶
type SqsQueue struct {
// contains filtered or unexported fields
}
SqsQueue is the structure containing config and session information for a particular poller
func NewSqsPoller ¶
func NewSqsPoller(c Configuration, h Handler, l *log.Logger) *SqsQueue
NewSqsPoller returns a new sqs poller for a given configuration and handler
Click to show internal directories.
Click to hide internal directories.