Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
IncludePaths []string
ExcludeMatchers []string
SyncWorkersIntervalSec int
StateStoreIntervalSec int
RecordMaxSizeBytes int
EventMaxRecords int
Schemas []*SchemaConfig
}
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type Meta ¶
type Meta struct {
// Tags contains map of key-value pairs
Tags map[string]string
// Fields contains map of key-value pairs
Fields map[string]string
}
Meta descirbes Tags and Fields assignment. Tags and Fields are maps, where key is the value of Tag or Field and the value is a template for the value. The template can contains variables placed in curly braces e.g. "var1={var1} or var2={var2}"...
type SchemaConfig ¶
type SchemaConfig struct {
// PathMatcher contains a regexp for matching file names. It can contain
// named groups, which values can be assigned for tags and fields (see Meta field)
PathMatcher string
DataFormat parser.DataFormat
DateFormats []string
// Meta describes Tags and fields assignment. It is formded based on PathMather
// where keys are taken by group names from the regular expression
Meta Meta
}
SchemaConfig describes the configuration for parsing of the data
func (*SchemaConfig) Check ¶
func (sc *SchemaConfig) Check() error
func (*SchemaConfig) String ¶
func (sc *SchemaConfig) String() string
Click to show internal directories.
Click to hide internal directories.