gcp

package module
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 7 Imported by: 0

README

Golang GCP tools

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

License

MIT

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 {
}

FireStoreClient The fire store client

type PubSubClient

type PubSubClient struct {
}

PubSubClient The PubSub client

type StorageClient

type StorageClient struct {
	ProjectID string
	Timeout   time.Duration
}

StorageClient ...

func (*StorageClient) Write

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

Jump to

Keyboard shortcuts

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