Documentation ¶
Index ¶
- Constants
- type Config
- func (s *Config) ChangeVisibilityTimeout(msg *sqs.Message, seconds int64) bool
- func (s *Config) Delete(msg *sqs.Message) error
- func (s *Config) Enqueue(ctx context.Context, msgBatch []*sqs.SendMessageBatchRequestEntry) error
- func (s *Config) Poll()
- func (s *Config) RegisterHandler(handler func(msg *sqs.Message))
- func (s *Config) Status() error
- type Event
- type EventHandler
- type SQS
Constants ¶
View Source
const ( MessageAttributeType = "Type" MessageAttributeClusterName = "ClusterName" // ClusterUpdateEvent refers to an update of the Cluster object that // is sent by the client controller. This event is sent to the SQS queue and // is consumed by the API server which reconciles the DB. ClusterUpdateEvent = "cluster-update" // PartialClusterUpdateEvent refers to an update of the ClusterSync object on the // management cluster which is sent by the sync controller. This event is sent to // the SQS queue and is consumed by the sync client which creates/updates the // Cluster object on the cluster. PartialClusterUpdateEvent = "partial-cluster-update" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.6.0
type Config struct { AWSRegion string QueueName string Endpoint string QueueURL 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 }
func (*Config) ChangeVisibilityTimeout ¶ added in v1.6.0
ChangeVisibilityTimeout : Method to change visibility timeout of a message.
func (*Config) RegisterHandler ¶ added in v1.6.0
RegisterHandler : A method to register a custom Poll Handling method
type EventHandler ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.