Skip to content

v0.1.10 - Updated Pub/Sub Handler

Choose a tag to compare

@albeebe albeebe released this 28 Feb 20:27
· 19 commits to main since this release

New & Improved: Pub/Sub Handling Updates

New Function: ParsePubSubEnvelope

  • Introduced ParsePubSubEnvelope, a new utility function that:
    • Parses an http.Request from Cloud Pub/Sub.
    • Decodes the base64-encoded message data.
    • Returns the message data, message ID, and publish timestamp.

Update: AddPubSubEndpoint

  • AddPubSubEndpoint now accepts a standard EndpointHandler, ensuring better consistency and flexibility when integrating Pub/Sub message processing.