Documentation ¶
Index ¶
- func ClientHeaderWhitelistOnPublish(whitelist map[string]struct{}) client.PublishOption
- func ClientValidateHeaderOnPublish(validate bool) client.PublishOption
- func ClientValidateOnPublish(validate bool) client.PublishOption
- func HeaderWhitelistOnPublish(whitelist map[string]struct{}) broker.PublishOption
- func MaxReceiveMessages(max int64) broker.SubscribeOption
- func NewBroker(opts ...broker.Option) broker.Broker
- func SNSConfig(c *aws.Config) broker.Option
- func SQSConfig(c *aws.Config) broker.Option
- func STSConfig(c *aws.Config) broker.Option
- func ValidateBody(msg *broker.Message) error
- func ValidateHeader(msg *broker.Message, whitelist map[string]struct{}) error
- func ValidateHeaderOnPublish(validate bool) broker.PublishOption
- func ValidateOnPublish(validate bool) broker.PublishOption
- func VisibilityTimeout(seconds int64) broker.SubscribeOption
- func WaitTimeSeconds(seconds int64) broker.SubscribeOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientHeaderWhitelistOnPublish ¶
func ClientHeaderWhitelistOnPublish(whitelist map[string]struct{}) client.PublishOption
ClientHeaderWhitelist validate headers before sending to sns.
func ClientValidateHeaderOnPublish ¶
func ClientValidateHeaderOnPublish(validate bool) client.PublishOption
ClientValidateHeaderOnPublish validate headers before sending to sns.
func ClientValidateOnPublish ¶
func ClientValidateOnPublish(validate bool) client.PublishOption
func HeaderWhitelistOnPublish ¶
func HeaderWhitelistOnPublish(whitelist map[string]struct{}) broker.PublishOption
HeaderWhitelist validate headers before sending to sns.
func MaxReceiveMessages ¶
func MaxReceiveMessages(max int64) broker.SubscribeOption
MaxReceiveMessages indicates how many messages a receive operation should pull during any single call.
func ValidateBody ¶
ValidateBody Validate message for the lowest requirements of both SNS and SQS.
func ValidateHeaderOnPublish ¶
func ValidateHeaderOnPublish(validate bool) broker.PublishOption
ValidateHeaderOnPublish validate headers before sending to sns.
func ValidateOnPublish ¶
func ValidateOnPublish(validate bool) broker.PublishOption
ValidateOnPublish determines whether to pre-validate messages before they're published This has a significant performance impact.
func VisibilityTimeout ¶
func VisibilityTimeout(seconds int64) broker.SubscribeOption
VisibilityTimeout controls how long a message is hidden from other queue consumers before being put back. If a consumer does not delete the message, it will be put back even if it was "processed".
func WaitTimeSeconds ¶
func WaitTimeSeconds(seconds int64) broker.SubscribeOption
WaitTimeSeconds controls the length of long polling for available messages.
Types ¶
This section is empty.