gcp

package module
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 10 Imported by: 0

README

Golang GCP tools

PkgGoDev

  • Some GCP SDK's wrappers for Serverless usage scenarios.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigQueryClient

type BigQueryClient struct {
	ProjectID string
}

BigQueryClient The wrapper of BigQuery client

func (*BigQueryClient) GetRowsFromSQL

func (c *BigQueryClient) GetRowsFromSQL(sql string) [][]bigquery.Value

GetRowsFromSQL Get the result rows from SQL

func (*BigQueryClient) InsertRows

func (c *BigQueryClient) InsertRows(dataSet string, table string, rows interface{})

InsertRows Insert rows to table

type FireStoreClient

type FireStoreClient struct {
	ProjectID  string
	Collection string
}

FireStoreClient The fire store client

func (*FireStoreClient) BatchInsert added in v2.3.0

func (c *FireStoreClient) BatchInsert(docs []interface{}) (allIds []string)

BatchInsert - Batch insert

func (*FireStoreClient) Get added in v2.1.0

Get ...

func (*FireStoreClient) Set added in v2.1.0

func (c *FireStoreClient) Set(id string, data interface{})

Set ...

type PubSubClient

type PubSubClient struct {
}

PubSubClient The PubSub client

type PubSubMsg added in v2.2.0

type PubSubMsg struct {
	Data []byte `json:"data"`
}

PubSubMsg - The PubSub message

type StorageClient

type StorageClient struct {
	ProjectID string
	Timeout   time.Duration
	Bucket    string
}

StorageClient ...

func (*StorageClient) Write

func (c *StorageClient) Write(object string, content io.Reader)

Jump to

Keyboard shortcuts

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