gcs-download-server-example

command module
v0.0.0-...-bff3b35 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 10 Imported by: 0

README

gcs-download-server-example

Example Go server to download files from a Google Cloud Storage bucket.

Usage

You need a sufficiently privileged GCP service account. For example:

export GOOGLE_APPLICATION_CREDENTIALS="KEY_PATH"

Then just run the application:

go run main.go -project="example-gcp-project"

This will start an HTTP server on port 8080 with the single route GET /download/{bucket}/{filename:.*}.

For more information, see: https://cloud.google.com/storage/docs/streaming

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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