https://github.com/kstep/gcloud-env
Read Google Cloud Run runtime environment
https://github.com/kstep/gcloud-env
Last synced: 7 months ago
JSON representation
Read Google Cloud Run runtime environment
- Host: GitHub
- URL: https://github.com/kstep/gcloud-env
- Owner: kstep
- Created: 2022-04-26T16:13:11.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-26T16:13:58.000Z (about 4 years ago)
- Last Synced: 2024-12-27T00:41:41.764Z (over 1 year ago)
- Language: Rust
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gcloud-env
Read [Google Cloud Run](https://cloud.google.com/run) runtime environment as a Rust struct.
```rust
use gcloud_env::GCloudRunEnv;
fn main() {
let genv = GCloudRunEnv::from_env().expect("Not running from Cloud Run");
println!("Starting with config: {:?}", genv);
start_server(genv.port);
}
```