bq

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package bq implements bigquery-related logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeviceConfigProtos

func GetDeviceConfigProtos(ctx context.Context) []proto.Message

GetDeviceConfigProtos prepares the proto messages for all device configs to upload to bq.

func GetManufacturingConfigProtos

func GetManufacturingConfigProtos(ctx context.Context) []proto.Message

GetManufacturingConfigProtos prepares the proto messages for all device configs to upload to bq.

func GetPSTTimeStamp

func GetPSTTimeStamp(t time.Time) string

GetPSTTimeStamp returns the PST timestamp for bq table.

func GetRegisteredAssetsProtos

func GetRegisteredAssetsProtos(ctx context.Context) []proto.Message

GetRegisteredAssetsProtos prepares the proto messages for registered assets to upload to bq.

func InitBQUploader

func InitBQUploader(ctx context.Context, project, dataset, table string) (*bq.Uploader, error)

InitBQUploader initialize a bigquery uploader.

func InitBQUploaderWithClient

func InitBQUploaderWithClient(ctx context.Context, client *bigquery.Client, dataset, table string) *bq.Uploader

InitBQUploaderWithClient initialize a bigquery uploader with a given bigquery client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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