package
module
Version:
v0.0.0-...-009975c
Opens a new window with list of versions in this module.
Published: May 12, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Example
How to run with Cloud Functions/Cloud Scheduler
$ gcloud pubsub topics create bqnotify
$ gcloud functions deploy BqNotify \
--project mizzy-270104 \
--region asia-northeast1 \
--runtime go113 \
--trigger-topic bqnotify \
--set-env-vars SLACK_WEBHOOK_URL=$SLACK_WEBHOOK_URL \
--set-env-vars BQNOTIFY_PROJECT=mizzy-270104
$ gcloud scheduler jobs create pubsub bqnotify \
--project mizzy-270104 \
--message-body {} \
--topic bqnotify \
--schedule '0 0 * * *'
Notification result example

Documentation
¶
BqNotify is a main function to run bqnotify on Cloud Functions
type PubSubMessage struct {
Data []byte `json:"data"`
}
PubSubMessage is needed to run on Cloud Functions
Source Files
¶
Click to show internal directories.
Click to hide internal directories.