data

package
v0.0.0-...-bea810b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseFrame

type BaseFrame struct {
	Name string
}

type ConfigFile

type ConfigFile interface {
	File
	FindLogPaths() ([]string, error)
	FindIncludedConfig() (ConfigFile, error)
	IsIncluded() bool
}

type ConfigFileFrame

type ConfigFileFrame struct {
	Directory string
	// contains filtered or unexported fields
}

func NewConfigFileFrame

func NewConfigFileFrame(directory string) (ConfigFileFrame, []error)

func (ConfigFileFrame) Columns

func (f ConfigFileFrame) Columns() []string

func (ConfigFileFrame) FindLogPaths

func (f ConfigFileFrame) FindLogPaths() (logPaths []string, errors []error)

func (ConfigFileFrame) Name

func (f ConfigFileFrame) Name() string

func (ConfigFileFrame) Next

func (f ConfigFileFrame) Next() ([]interface{}, bool, error)

type DatabaseFrame

type DatabaseFrame struct {
	ColumnNames []string
	// contains filtered or unexported fields
}

func NewDatabaseFrame

func NewDatabaseFrame(name string, rows *sql.Rows) (DatabaseFrame, error)

func (DatabaseFrame) Columns

func (f DatabaseFrame) Columns() []string

func (DatabaseFrame) Name

func (f DatabaseFrame) Name() string

func (DatabaseFrame) Next

func (f DatabaseFrame) Next() ([]interface{}, bool, error)

type DiagnosticBundle

type DiagnosticBundle struct {
	Frames map[string]Frame
	// Errors is a property to be set if the Collector has an error. This can be used to indicate a partial collection
	// and failed frames
	Errors FrameErrors
}

DiagnosticBundle contains the results from a Collector each frame can represent a table or collection of data files. By allowing multiple frames a single DiagnosticBundle can potentially contain many related tables

type DirectoryFileFrame

type DirectoryFileFrame struct {
	FileFrame
	Directory string
}

DirectoryFileFrame represents a set of files under a directory

func NewFileDirectoryFrame

func NewFileDirectoryFrame(directory string, exts []string) (DirectoryFileFrame, []error)

func (DirectoryFileFrame) Columns

func (f DirectoryFileFrame) Columns() []string

func (DirectoryFileFrame) Name

func (f DirectoryFileFrame) Name() string

func (DirectoryFileFrame) Next

func (f DirectoryFileFrame) Next() ([]interface{}, bool, error)

type Field

type Field struct {
	// Name of the field
	Name string
	// A list of fields that must implement FieldType interface
	Values []interface{}
}

type File

type File interface {
	Copy(destPath string, removeSensitive bool) error
	FilePath() string
}

type FileFrame

type FileFrame struct {
	// contains filtered or unexported fields
}

func NewFileFrame

func NewFileFrame(name string, filePaths []string) FileFrame

func (FileFrame) Columns

func (f FileFrame) Columns() []string

func (FileFrame) Name

func (f FileFrame) Name() string

func (FileFrame) Next

func (f FileFrame) Next() ([]interface{}, bool, error)

type Frame

type Frame interface {
	Next() ([]interface{}, bool, error)
	Columns() []string
	Name() string
}

type FrameErrors

type FrameErrors struct {
	Errors []error
}

func (*FrameErrors) Error

func (fe *FrameErrors) Error() string

type HierarchicalFrame

type HierarchicalFrame struct {
	DataFrame Frame
	SubFrames []HierarchicalFrame
	// contains filtered or unexported fields
}

func NewHierarchicalFrame

func NewHierarchicalFrame(name string, frame Frame, subFrames []HierarchicalFrame) HierarchicalFrame

func (HierarchicalFrame) Columns

func (hf HierarchicalFrame) Columns() []string

func (HierarchicalFrame) Name

func (hf HierarchicalFrame) Name() string

func (HierarchicalFrame) Next

func (hf HierarchicalFrame) Next() ([]interface{}, bool, error)

type MemoryFrame

type MemoryFrame struct {
	ColumnNames []string
	Rows        [][]interface{}
	// contains filtered or unexported fields
}

func NewMemoryFrame

func NewMemoryFrame(name string, columns []string, rows [][]interface{}) MemoryFrame

func (MemoryFrame) Columns

func (f MemoryFrame) Columns() []string

func (MemoryFrame) Name

func (f MemoryFrame) Name() string

func (MemoryFrame) Next

func (f MemoryFrame) Next() ([]interface{}, bool, error)

type Order

type Order int
const (
	Asc  Order = 1
	Desc Order = 2
)

type OrderBy

type OrderBy struct {
	Column string
	Order  Order
}

func (OrderBy) String

func (o OrderBy) String() string

type SimpleFile

type SimpleFile struct {
	Path string
}

func (SimpleFile) Copy

func (s SimpleFile) Copy(destPath string, removeSensitive bool) error

Copy supports removeSensitive for other file types but for a simple file this doesn't do anything

func (SimpleFile) FilePath

func (s SimpleFile) FilePath() string

type XmlConfig

type XmlConfig struct {
	XMLName     xml.Name        `xml:"clickhouse"`
	Clickhouse  XmlLoggerConfig `xml:"logger"`
	IncludeFrom string          `xml:"include_from"`
}

type XmlConfigFile

type XmlConfigFile struct {
	Path     string
	Included bool
}

func (XmlConfigFile) Copy

func (x XmlConfigFile) Copy(destPath string, removeSensitive bool) error

func (XmlConfigFile) FilePath

func (x XmlConfigFile) FilePath() string

func (XmlConfigFile) FindIncludedConfig

func (x XmlConfigFile) FindIncludedConfig() (ConfigFile, error)

func (XmlConfigFile) FindLogPaths

func (x XmlConfigFile) FindLogPaths() ([]string, error)

func (XmlConfigFile) IsIncluded

func (x XmlConfigFile) IsIncluded() bool

func (XmlConfigFile) UnmarshallConfig

func (x XmlConfigFile) UnmarshallConfig() (XmlConfig, error)

type XmlLoggerConfig

type XmlLoggerConfig struct {
	XMLName  xml.Name `xml:"logger"`
	ErrorLog string   `xml:"errorlog"`
	Log      string   `xml:"log"`
}

type YamlConfig

type YamlConfig struct {
	Logger       YamlLoggerConfig
	Include_From string
}

type YamlConfigFile

type YamlConfigFile struct {
	Path     string
	Included bool
}

func (YamlConfigFile) Copy

func (y YamlConfigFile) Copy(destPath string, removeSensitive bool) error

func (YamlConfigFile) FilePath

func (y YamlConfigFile) FilePath() string

func (YamlConfigFile) FindIncludedConfig

func (y YamlConfigFile) FindIncludedConfig() (ConfigFile, error)

func (YamlConfigFile) FindLogPaths

func (y YamlConfigFile) FindLogPaths() ([]string, error)

func (YamlConfigFile) IsIncluded

func (y YamlConfigFile) IsIncluded() bool

type YamlLoggerConfig

type YamlLoggerConfig struct {
	Log      string
	ErrorLog string
}

type YandexXMLConfig

type YandexXMLConfig struct {
	XMLName     xml.Name        `xml:"yandex"`
	Clickhouse  XmlLoggerConfig `xml:"logger"`
	IncludeFrom string          `xml:"include_from"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL