Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyValueSchemaName = "key-value" GroupedKeyValueSchemaName = "grouped-key-value" )
Variables ¶
This section is empty.
Functions ¶
func IsValidSchemaType ¶
Types ¶
type GroupedKeyValuePairs ¶
type GroupedKeyValuePairs struct {
// contains filtered or unexported fields
}
This output schema is suitable for one or more key-values pairs grouped by a group name. This schema assumes the data is already grouped and does not perform the grouping itself.
func (*GroupedKeyValuePairs) CreateTable ¶
func (gkvp *GroupedKeyValuePairs) CreateTable() string
func (*GroupedKeyValuePairs) IngestData ¶
func (gkvp *GroupedKeyValuePairs) IngestData(data []byte, order []string, arguments ...string) error
func (*GroupedKeyValuePairs) Name ¶
func (gkvp *GroupedKeyValuePairs) Name() string
type KeyValueData ¶
This output schema is suitable for data that is an array of key-value pairs
func (*KeyValueData) UnmarshalJSON ¶
func (kvd *KeyValueData) UnmarshalJSON(data []byte) error
type KeyValuePairs ¶
type KeyValuePairs struct {
// contains filtered or unexported fields
}
func (*KeyValuePairs) CreateTable ¶
func (kvp *KeyValuePairs) CreateTable() string
func (*KeyValuePairs) IngestData ¶
func (kvp *KeyValuePairs) IngestData(data []byte, order []string, arguments ...string) error
func (*KeyValuePairs) Name ¶
func (kvp *KeyValuePairs) Name() string
type OutputSchema ¶
type OutputSchema struct {
Name string `json:"name"`
RawColumns string `json:"columns"`
GroupBy string `json:"group_by"`
// contains filtered or unexported fields
}
func (*OutputSchema) Columns ¶
func (schema *OutputSchema) Columns() []string
func (*OutputSchema) IngestColumns ¶
func (schema *OutputSchema) IngestColumns()
type PackageOutput ¶
type PackageOutput interface {
// The names of columns followed by any other strings needed, like the data itself
// Each type that implements this interface will have to make sure the correct number
// of strings are provided
IngestData([]byte, []string, ...string) error
// Renders the data into a table
CreateTable() string
Name() string
}
func GetNewPackageOutput ¶
func GetNewPackageOutput(name string) PackageOutput
Click to show internal directories.
Click to hide internal directories.