Documentation
¶
Overview ¶
Package workbook renders a canvas dashboard, described by a CanvasWorkbookExportRequest, as an Excel workbook.
Index ¶
Constants ¶
View Source
const ( MaxSheets = 200 MaxRowsPerSheet = 100_000 MaxColumnsPerSheet = 200 // Cells across all data sheets: the request is parsed into memory before the sheets are streamed out. MaxCells = 1_000_000 MaxImageBytes = 32 << 20 )
Caps on the size of a request. The browser builds a request from data it already holds under its own claims, so the caps protect the runtime from oversized workbooks rather than from untrusted content.
Variables ¶
This section is empty.
Functions ¶
func IsValidationError ¶
IsValidationError reports whether err is a ValidationError.
Types ¶
type ValidationError ¶
type ValidationError struct {
// contains filtered or unexported fields
}
ValidationError is returned when a request can't be rendered as a workbook. Handlers should map it to a client error.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.