123456789101112131415161718192021222324 |
- package report
- // Table is the type for a table in the UI.
- type Table struct {
- ID string `json:"id"`
- Label string `json:"label"`
- Type string `json:"type"`
- Columns []Column `json:"columns"`
- Rows []Row `json:"rows"`
- TruncationCount int `json:"truncationCount,omitempty"`
- }
- // Column is the type for multi-column tables in the UI.
- type Column struct {
- ID string `json:"id"`
- Label string `json:"label"`
- DataType string `json:"dataType"`
- }
- // Row is the type that holds the table data for the UI. Entries map from column ID to cell value.
- type Row struct {
- ID string `json:"id"`
- Entries map[string]string `json:"entries"`
- }
|