An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

proxy.golang.org : github.com/marksalpeter/go-qstash

Package qstash is a go library for the (QStash) https://upstash.com/docs/qstash/overall/getstarted service. ## Getting Started To get started, you need to create a qstash instance from the (Upstash Console) https://console.upstash.com/. You can follow the (Getting Started Guide) https://upstash.com/docs/qstash/overall/getstarted to create your first qstash instance. Once you have created a qstash instance, you will need to add the following environment variables to your project from the Upstash console: - `QSTASH_TOKEN` - The api token is used to publish messages to your qstash instance - `QSTASH_SIGNING_KEY` - The signing key of your qstash instance - `QSTASH_NEXT_SIGNING_KEY` - The next signing key of your qstash instance You must set these environment variables or pass them manually as options to the `NewReceiver` and `NewPublisher` functions. The following example demonstrates how to use qstash to send and receive messages. This example uses ngrok to expose our message receiver to the internet (otherwise upstash will not be able to reach our endpoint). To run this example you'll need a free (upstash) https://upstash.com and (ngrok) https://ngrok.com account and the following environment variables will need to be set: - `QSTASH_SIGNING_KEY` - The signing key verifies the body of received messages from qstash - `QSTASH_NEXT_SIGNING_KEY` - The next signing key is used for key rotation during message verification - `QSTASH_TOKEN` - The api token is used to publish messages to your qstash instance - `NGROK_AUTHTOKEN` - The auth token for your ngrok account

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/marksalpeter/go-qstash
Keywords: go , golang , golang-library , qstash , qstash-upstash , upstash
License: MIT
Latest release: almost 2 years ago
First release: almost 2 years ago
Namespace: github.com/marksalpeter
Stars: 2 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 months ago

    Loading...
    Readme
    Loading...