Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceToFrame ¶
Types ¶
type AnyFramer ¶
type AnyFramer struct { Name string `json:"name,omitempty"` InputType InputType `json:"inputType,omitempty"` RawURL string `json:"rawUrl,omitempty"` Headers http.Header `json:"headers,omitempty"` RootSelector string `json:"rootSelector,omitempty"` Columns []Column `json:"columns,omitempty"` CSVOptions CSVOptions `json:"csvOptions,omitempty"` }
AnyFramer defines the framer options
type CSVOptions ¶
type CSVOptions struct { Delimiter string `json:"delimiter,omitempty"` Comment string `json:"comment,omitempty"` RelaxColumnCount bool `json:"relaxColumnCount,omitempty"` SkipLinesWithError bool `json:"skipLinesWithError,omitempty"` NoHeaders bool `json:"noHeaders,omitempty"` Headers []string `json:"headers,omitempty"` }
CSVOptions ...
type Column ¶
type Column struct { Selector string `json:"selector,omitempty"` Alias string `json:"alias,omitempty"` Format ColumnFormat `json:"format,omitempty"` TimeFormat string `json:"timeFormat,omitempty"` }
Column ...
type ColumnFormat ¶
type ColumnFormat string
ColumnFormat ...
const ( // ColumnFormatString ... ColumnFormatString ColumnFormat = "string" // ColumnFormatNumber ... ColumnFormatNumber ColumnFormat = "number" // ColumnFormatBoolean ... ColumnFormatBoolean ColumnFormat = "boolean" // ColumnFormatTimeStamp ... ColumnFormatTimeStamp ColumnFormat = "timestamp" // ColumnFormatUnixMsecTimeStamp ... ColumnFormatUnixMsecTimeStamp ColumnFormat = "timestamp_epoch" // ColumnFormatUnixSecTimeStamp ... ColumnFormatUnixSecTimeStamp ColumnFormat = "timestamp_epoch_s" )
type InputType ¶
type InputType string
InputType ...
const ( // InputTypeUnknown ... InputTypeUnknown InputType = "unknown" // InputTypeJSON ... InputTypeJSON InputType = "json" // InputTypeCSV ... InputTypeCSV InputType = "csv" // InputTypeTSV ... InputTypeTSV InputType = "tsv" // InputTypeHTML ... InputTypeHTML InputType = "html" // InputTypeXML ... InputTypeXML InputType = "xml" )
Click to show internal directories.
Click to hide internal directories.