Admiral-Piett / goaws

AWS (SQS/SNS) Clone for Development testing
MIT License
782 stars 145 forks source link

adds message attributes to publish that attach to the sqs attributes on raw #163

Closed qhenkart closed 6 years ago

qhenkart commented 6 years ago

This is a minor improvement of https://github.com/p4tin/goaws/pull/159 which created a functionality that differed from SNS.

  1. DataType is now required for message attributes. This would have led users to create a functional message attribute attachment in the emulator that would have broken on deployed environments

  2. The new message attribute helper in the SNS package used a new specific datatype and helper logic that made the helper incompatible with SQS message attributes

  3. The filter policy now properly looks for the Data Type with a comment on how to extend the filter policy to provide support other data types that SNS currently supports. For now I have maintained the current functionality of only supporting String based data types. Documentation on that here

  4. Last, I have added the main functionality that I needed, which attaches SNS message attributes to the SQS queue when the queue is set to raw. Documentation on that here