Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTableRequest ¶
type CreateTableRequest struct {
Definition interface{}
}
CreateTableRequest contains all information to create a database table. Definition is usually a struct with some sort of tagging.
For example, for Chrome, if the database is BigQuery:
type TestResult struct { ID string `bigquery:"id"` Result string `bigquery:"result"` }
type InsertRequest ¶
type InsertRequest struct {
Items interface{}
}
InsertRequest contains all information to upload.
type UploadClient ¶
type UploadClient interface { // CreateTableFromStruct creates a table based on the provided struct definition. // The struct should define some tags that can be utilized for table definition. CreateTableFromStruct(ctx context.Context, req *CreateTableRequest) error // Insert uploads one or more rows. Insert(ctx context.Context, req *InsertRequest) error }
UploadClient defines an interface for uploading data to some source.
func NewUploadClient ¶
func NewUploadClient(ctx context.Context, cfg *UploadClientConfig) (UploadClient, error)
NewUploadClient returns, at the moment, a Chrome implementation for uploading data.
type UploadClientConfig ¶
UploadClientConfig contains configurations required for client setup.
Click to show internal directories.
Click to hide internal directories.