platform

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 6 Imported by: 0

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

func Storage() *storage.Client

Storage returns a reference to the storage client

Types

type Client

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

Client holds all clients needed to access basic Google Cloud services

func NewClient

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

NewClient creates a new client

func (*Client) Close

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