Documentation ¶
Index ¶
- type FieldTypes
- type MergeFilesCommand
- type Schema
- func (s Schema) AddField(database, retention, measurement, field, dataType string)
- func (s Schema) AddFormattedField(field string, dataType string)
- func (s Schema) Conflicts() Schema
- func (s Schema) Decode(r io.Reader) error
- func (s Schema) Encode(w io.Writer) error
- func (s Schema) Merge(schema Schema)
- func (s Schema) WriteConflictsFile(filename string) error
- func (s Schema) WriteSchemaFile(filename string) error
- type TypeConflictChecker
- type UniqueField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldTypes ¶
type FieldTypes map[string]struct{}
func (FieldTypes) MarshalText ¶
func (ft FieldTypes) MarshalText() (text []byte, err error)
func (*FieldTypes) UnmarshalText ¶
func (ft *FieldTypes) UnmarshalText(text []byte) error
type MergeFilesCommand ¶
func NewMergeFilesCommand ¶
func NewMergeFilesCommand() *MergeFilesCommand
func (*MergeFilesCommand) Run ¶
func (rc *MergeFilesCommand) Run(args ...string) error
type Schema ¶
type Schema map[string]FieldTypes
func SchemaFromFile ¶
func (Schema) AddFormattedField ¶
func (Schema) WriteConflictsFile ¶
func (Schema) WriteSchemaFile ¶
type TypeConflictChecker ¶
func NewTypeConflictCheckerCommand ¶
func NewTypeConflictCheckerCommand() *TypeConflictChecker
func (*TypeConflictChecker) Run ¶
func (tc *TypeConflictChecker) Run(args ...string) error
type UniqueField ¶
type UniqueField struct { Database string `json:"database"` Retention string `json:"retention"` Measurement string `json:"measurement"` Field string `json:"field"` }
func (*UniqueField) String ¶
func (uf *UniqueField) String() string
Click to show internal directories.
Click to hide internal directories.