Documentation
¶
Overview ¶
Package sheets implements a Writer that writes transactions to Google Sheets.
Index ¶
Constants ¶
View Source
const ( DefaultBatchSize = 10 DefaultFlushInterval = 30 * time.Second )
Default configuration values for buffered writes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// SheetTitle is the title for a new spreadsheet (if SheetID is empty).
SheetTitle string
// SheetID is the ID of an existing spreadsheet to use.
SheetID string
// SheetName is the name of the sheet within the spreadsheet.
SheetName string
// BatchSize is the number of transactions to buffer before writing.
// Defaults to DefaultBatchSize.
BatchSize int
// FlushInterval is the interval between automatic flushes.
// Defaults to DefaultFlushInterval.
FlushInterval time.Duration
}
Config holds configuration for the Sheets writer.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer writes transactions to a Google Sheet with buffered batching.
func (*Writer) SpreadsheetID ¶
SpreadsheetID returns the ID of the spreadsheet being written to.
Click to show internal directories.
Click to hide internal directories.