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 ¶
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.
Click to show internal directories.
Click to hide internal directories.