bquploader

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: 7 Imported by: 0

Documentation

Overview

Package bquploader defines a uploader of BigQuery.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TargetTable

type TargetTable struct {
	ProjectID string
	Dataset   string
	TableName string
}

TargetTable represents a fully qualified BigQuery table name.

func (*TargetTable) String

func (t *TargetTable) String() string

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}

Uploader uploads records to BigQuery at regular intervals.

func NewUploader

func NewUploader(table TargetTable, interval time.Duration, opts ...option.ClientOption) (*Uploader, error)

NewUploader creates a new Uploader.

func (*Uploader) Close

func (u *Uploader) Close()

Close closes the uploader and release all resources.

func (*Uploader) QueueRecord

func (u *Uploader) QueueRecord(r interface{})

QueueRecord queues a record for uploading in the next batch.

Jump to

Keyboard shortcuts

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