Documentation ¶
Overview ¶
Package bq implements bigquery-related logic.
Index ¶
- func GetDeviceConfigProtos(ctx context.Context) []proto.Message
- func GetManufacturingConfigProtos(ctx context.Context) []proto.Message
- func GetPSTTimeStamp(t time.Time) string
- func GetRegisteredAssetsProtos(ctx context.Context) []proto.Message
- func InitBQUploader(ctx context.Context, project, dataset, table string) (*bq.Uploader, error)
- func InitBQUploaderWithClient(ctx context.Context, client *bigquery.Client, dataset, table string) *bq.Uploader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeviceConfigProtos ¶
GetDeviceConfigProtos prepares the proto messages for all device configs to upload to bq.
func GetManufacturingConfigProtos ¶
GetManufacturingConfigProtos prepares the proto messages for all device configs to upload to bq.
func GetPSTTimeStamp ¶
GetPSTTimeStamp returns the PST timestamp for bq table.
func GetRegisteredAssetsProtos ¶
GetRegisteredAssetsProtos prepares the proto messages for registered assets to upload to bq.
func InitBQUploader ¶
InitBQUploader initialize a bigquery uploader.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.