Documentation
¶
Index ¶
- Variables
- func NewPlugin() (*pkgplugin.Plugin, error)
- func NewPluginVersion(name string, version string, commitID string) (*pkgplugin.Plugin, error)
- func NewReceiver(config interface{}) (receiver.Receiver, error)
- func NewSender(config interface{}) (sender.Sender, error)
- type Receiver
- type ReceiverConfig
- type Sender
- type SenderConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "sqs" Version = "v0.0.0" CommitID = "" )
View Source
var DefaultReceiverConfig = ReceiverConfig{ QueueUrl: "", MaxNumberOfMessages: pointer.Int(10), VisibilityTimeout: pointer.Int(10), WaitTimeSeconds: pointer.Int(10), AcknowledgeTimeout: pointer.Int(5), NumRetries: pointer.Int(0), ReceiverQueueDepth: pointer.Int(100), ReceiverPoolSize: pointer.Int(1), }
View Source
var DefaultSenderConfig = SenderConfig{ QueueUrl: "", MaxNumberOfMessages: pointer.Int(10), SendTimeout: pointer.Int(1), DelaySeconds: pointer.Int(0), SenderPoolSize: pointer.Int(1), }
Functions ¶
func NewPluginVersion ¶
func NewReceiver ¶
Types ¶
type ReceiverConfig ¶
type ReceiverConfig struct {
QueueUrl string `json:"queueUrl,omitempty"`
MaxNumberOfMessages *int `json:"maxNumberOfMessages,omitempty"`
VisibilityTimeout *int `json:"visibilityTimeout,omitempty"`
WaitTimeSeconds *int `json:"waitTimeSeconds,omitempty"`
AcknowledgeTimeout *int `json:"acknowledgeTimeout,omitempty"`
NumRetries *int `json:"numRetries,omitempty"`
ReceiverQueueDepth *int `json:"receiverQueueDepth,omitempty"`
ReceiverPoolSize *int `json:"receiverPoolSize,omitempty"`
}
func (*ReceiverConfig) Validate ¶
func (rc *ReceiverConfig) Validate() error
Validate returns an error upon validation failure
func (*ReceiverConfig) WithDefaults ¶
func (rc *ReceiverConfig) WithDefaults() ReceiverConfig
WithDefaults returns a new config object that has all of the unset (nil) values filled in.
type Sender ¶
func (*Sender) StopSending ¶
type SenderConfig ¶
type SenderConfig struct {
QueueUrl string `json:"queueUrl,omitempty"`
MaxNumberOfMessages *int `json:"maxNumberOfMessages,omitempty"`
SendTimeout *int `json:"sendTimeout,omitempty"`
DelaySeconds *int `json:"delaySeconds,omitempty"`
SenderPoolSize *int `json:"senderPoolSize,omitempty"`
}
SenderConfig can be passed into NewSender() in order to configure the behavior of the sender.
Click to show internal directories.
Click to hide internal directories.