platform

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 6 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close the platform related clients

func DataStore

func DataStore() *datastore.Client

DataStore returns a reference to the datastore client

func Storage added in v0.13.0

func Storage() *storage.Client

Storage returns a reference to the storage client

Types

type Client added in v1.0.1

type Client struct {
	DatastoreClient *datastore.Client
	StorageClient   *storage.Client
}

Client holds all clients needed to access basic Google Cloud services

func NewClient added in v1.0.1

func NewClient(ctx context.Context, projectID, serviceName string) (*Client, error)

NewClient creates a new client

func (*Client) Close added in v1.0.1

func (c *Client) Close()

Close closes all clients to the Google Cloud services

Jump to

Keyboard shortcuts

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