app

command
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command app is the Go API of the SRS 11.2 reference stack. It runs on the emulated GKE cluster behind the load balancer and the Istio ingress gateway and uses Google Cloud exactly as a production service would: default endpoints, default credentials (the GKE metadata server through Workload Identity) and no emulator configuration at all.

GET  /api/health    liveness through LB → Istio (step 4)
POST /api/work      writes an object to Cloud Storage, inserts a row in
                    Cloud SQL through the Go connector with IAM database
                    authentication over private IP, publishes a Pub/Sub
                    message (step 5); 403 + PERMISSION_DENIED when IAM
                    denies any of them (step 8)
POST /api/push      Pub/Sub push endpoint; verifies the OIDC token
                    (step 6) and records the delivery
GET  /api/received  deliveries recorded by /api/push
GET  /api/egress    fetches ?url= from the internet (step 7)

Configuration (environment): PROJECT, BUCKET, TOPIC, SQL_INSTANCE (connection name), SQL_USER (IAM user), SQL_DB, PUSH_AUDIENCE, PUSH_SA (expected token email), PORT (default 8080).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL