Reference

This section contains high-level technical reference information for each component of the Go Cloud Development Kit. You can browse the full API reference at godoc.org.

blob

Blobs are a common abstraction for storing unstructured data on cloud storage providers and accessing them via HTTP.

Package blob provides an easy and portable way to interact with blobs within a storage location (“bucket”). It supports operations like reading and writing blobs (using standard interfaces from the io package), deleting blobs, and listing blobs in a bucket.

mysql

The mysql package provides functions for connecting to MySQL databases for both on-premise and cloud-provided instances using the *sql.DB type from the Go standard library. Database connections opened using this package will automatically collect diagnostic information via OpenCensus.

postgres

The postgres package provides functions for connecting to PostgreSQL databases for both on-premise and cloud-provided instances using the *sql.DB type from the Go standard library. Database connections opened using this package will automatically collect diagnostic information via OpenCensus.

pubsub

Pub/Sub refers to implementations of the publish-subscribe pattern, wherein clients connect to a cloud service to subscribe to topics or publish messages that could be delivered to subscribers.

Package pubsub provides an easy and portable way to interact with publish/subscribe systems that have at-least-once delivery.

runtimevar

Package runtimevar provides easy and portable access to the latest value of remote configuration variables.

secrets

Package secrets provides an easy and portable way to encrypt and decrypt messages.

This package lets you do symmetric encryption and decryption within your application layer. You can then store the secret data anywhere safely, for example, using our blob, runtimevar packages etc. It is also integrated with OpenCensus to get metrics and traces for Encrypt and Decrypt, and some providers also have automatic audit logs for all key management related activites.

server

Package server provides a preconfigured HTTP server with diagnostic hooks.