Categorygithub.com/guregodevo/golang-samples
modulepackage
0.0.0-20180403234405-3be5551c975d
Repository: https://github.com/guregodevo/golang-samples.git
Documentation: pkg.go.dev

# README

Google Cloud Platform Go Samples

Build Status

This repository holds sample code written in Go that demonstrates the Google Cloud Platform.

Some samples have accompanying guides on cloud.google.com. See respective README files for details.

Contributing changes.

Entirely new samples are not accepted. Bug fixes are welcome, either as pull requests or as GitHub issues.

See CONTRIBUTING.md for details on how to contribute.

Licensing

Code in this repository is licensed under the Apache 2.0. See LICENSE.

Index

Note: samples under docs/appengine are not shown because they mostly do not run, they are just code snippets.

Getting Started

PathDescription
getting-started/bookshelfPackage bookshelf contains the bookshelf database and app configuration, shared by the main app module and the worker module.
getting-started/bookshelf/appSample bookshelf is a fully-featured app demonstrating several Google Cloud APIs, including Datastore, Cloud SQL, Cloud Storage.
getting-started/bookshelf/pubsub_workerSample pubsub_worker demonstrates the use of the Cloud Pub/Sub API to communicate between two modules.
getting-started/helloworldSample helloworld is a basic App Engine flexible app.

Logging and Monitoring (Stackdriver)

PathDescription
docs/error-reporting/fluentSample fluent demonstrates integration of fluent and Cloud Error reporting.
docs/sql/listinstancesSample listinstances lists the Cloud SQL instances for a given project ID.
docs/storage/listbucketsCommand listbuckets lists the Google Cloud buckets for a given project ID.
logging/simplelogSample simplelog writes some entries, lists them, then deletes the log.
monitoring/custommetricCommand custommetric creates a custom metric and writes TimeSeries value to it.
monitoring/listresourcesCommand listresources lists the Google Cloud Monitoring v3 Environment against an authenticated user.

Compute

PathDescription
appengine/bigqueryThis App Engine application uses its default service account to list all the BigQuery datasets accessible via the BigQuery REST API.
docs/managed_vms/analyticsSample analytics demonstrates Google Analytics calls from App Engine flexible environment.
docs/managed_vms/cloudsqlSample cloudsql demonstrates usage of Cloud SQL from App Engine flexible environment.
docs/managed_vms/datastoreSample datastore demonstrates use of the cloud.google.com/go/datastore package from App Engine flexible.
docs/managed_vms/endpointsSample endpoints demonstrates a Cloud Endpoints API.
docs/managed_vms/endpoints/clientCommand client performs authenticated requests against an Endpoints API server.
docs/managed_vms/helloworldSample helloworld is a basic App Engine flexible app.
docs/managed_vms/mailgunSample mailgun is a demonstration on sending an e-mail from App Engine flexible environment.
docs/managed_vms/mailjetSample mailjet is a demonstration on sending an e-mail from App Engine flexible environment.
docs/managed_vms/memcacheSample memcache demonstrates use of a memcached client from App Engine flexible environment.
docs/managed_vms/pubsubSample pubsub demonstrates use of the cloud.google.com/go/pubsub package from App Engine flexible environment.
docs/managed_vms/sendgridSample sendgrid is a demonstration on sending an e-mail from App Engine flexible environment.
docs/managed_vms/static_filesPackage static demonstrates a static file handler for App Engine flexible environment.
docs/managed_vms/storageSample storage demonstrates use of the cloud.google.com/go/storage package from App Engine flexible environment.
docs/managed_vms/tinySample tiny demonstrates overall program structure: a main package with a main function that calls appengine.Main.
docs/managed_vms/twilioSample twilio demonstrates sending and receiving SMS, receiving calls via Twilio from App Engine flexible environment.

Storage

PathDescription
datastore/tasksA simple command-line task list manager to demonstrate using the cloud.google.com/go/datastore package.
storage/bucketsSample buckets creates a bucket, lists buckets and deletes a bucket using the Google Storage API.

Big Data

PathDescription
bigquery/syncqueryCommand syncquery queries a Google BigQuery dataset.
pubsub/subscriptionsCommand subscriptions is a tool to manage Google Cloud Pub/Sub subscriptions by using the Pub/Sub API.
pubsub/topicsCommand topics is a tool to manage Google Cloud Pub/Sub topics by using the Pub/Sub API.

Machine Learning

PathDescription
language/analyzeCommand analyze performs sentiment, entity, and syntax analysis on a string of text via the Cloud Natural Language API.
speech/captionCommand caption reads an audio file and outputs the transcript for it.
speech/captionasyncCommand captionasync reads an audio file and outputs the transcript for it.
speech/livecaptionCommand livecaption pipes the stdin audio data to Google Speech API and outputs the transcript.
speech/wordoffsetCommand wordoffset sends audio data to the Google Speech API and prints word offset information.
vision/detectCommand detect uses the Vision API's capabilities to detect several types of content (label, text, location, etc) for the given image.
vision/labelCommand label uses the Vision API's label detection capabilities to find a label based on an image's content.

Privacy

PathDescription
dlpSamples for the Data Loss Prevention API.

# Packages

No description provided by the author
No description provided by the author
Package authsnippets contains Google Cloud authentication snippets.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author