Documentation ¶
Index ¶
- func Close(parsers List) error
- func Compare(a interface{}, b interface{}) (*bool, error)
- type Boolean
- type BooleanConfig
- type Config
- type Float
- type FloatConfig
- type Integer
- type IntegerConfig
- type Json
- type JsonConfig
- type List
- type Mock
- type Parser
- type Split
- type SplitConfig
- type String
- type StringConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Boolean ¶
type Boolean struct {
// contains filtered or unexported fields
}
func NewBoolean ¶
func NewBoolean( config *BooleanConfig, ) *Boolean
func (*Boolean) GetRegexpPattern ¶
type BooleanConfig ¶
type BooleanConfig struct { Name string `yaml:"name"` Type string `yaml:"type"` TrueValues []string `yaml:"trueValues"` FalseValues []string `yaml:"falseValues"` Logger *logrus.Entry }
func (*BooleanConfig) GetName ¶
func (config *BooleanConfig) GetName() string
func (*BooleanConfig) Primitive ¶
func (config *BooleanConfig) Primitive() bool
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
func NewFloat ¶
func NewFloat( config *FloatConfig, ) *Float
func (*Float) GetRegexpPattern ¶
type FloatConfig ¶
type FloatConfig struct { Name string `yaml:"name"` Type string `yaml:"type"` DecimalSeparator string `yaml:"decimalSeparator"` IgnoreCharacters string `yaml:"ignoreCharacters"` Logger *logrus.Entry }
func (*FloatConfig) GetName ¶
func (config *FloatConfig) GetName() string
func (*FloatConfig) Primitive ¶
func (config *FloatConfig) Primitive() bool
type Integer ¶
type Integer struct {
// contains filtered or unexported fields
}
func NewInteger ¶
func NewInteger( config *IntegerConfig, ) *Integer
func (*Integer) GetRegexpPattern ¶
type IntegerConfig ¶
type IntegerConfig struct { Name string `yaml:"name"` Type string `yaml:"type"` IgnoreCharacters string `yaml:"ignoreCharacters"` Logger *logrus.Entry }
func (*IntegerConfig) GetName ¶
func (config *IntegerConfig) GetName() string
func (*IntegerConfig) Primitive ¶
func (config *IntegerConfig) Primitive() bool
type Json ¶
type Json struct {
// contains filtered or unexported fields
}
func NewJson ¶
func NewJson( config *JsonConfig, ) *Json
func (*Json) GetRegexpPattern ¶
type JsonConfig ¶
func (*JsonConfig) GetName ¶
func (config *JsonConfig) GetName() string
func (*JsonConfig) Primitive ¶
func (config *JsonConfig) Primitive() bool
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
func NewMockWithPrefix ¶
func (*Mock) GetRegexpPattern ¶
type Parser ¶
type Split ¶
type Split struct {
// contains filtered or unexported fields
}
func NewSplit ¶
func NewSplit( config *SplitConfig, parsers List, ) *Split
func (*Split) GetRegexpPattern ¶
type SplitConfig ¶
type SplitConfig struct { Name string `yaml:"name"` Type string `yaml:"type"` Delimiter *string `yaml:"delimiter"` DelimiterIsRegexp *bool `yaml:"delimiterIsRegexp"` Parser string `yaml:"parser"` Logger *logrus.Entry DelimiterRegexp *regexp.Regexp }
func (*SplitConfig) GetDelimiter ¶
func (config *SplitConfig) GetDelimiter() string
func (*SplitConfig) GetName ¶
func (config *SplitConfig) GetName() string
func (*SplitConfig) IsDelimiterARegexp ¶
func (config *SplitConfig) IsDelimiterARegexp() bool
func (*SplitConfig) Primitive ¶
func (config *SplitConfig) Primitive() bool
type String ¶
type String struct {
// contains filtered or unexported fields
}
func NewString ¶
func NewString( config *StringConfig, ) (*String, error)
func (*String) GetRegexpPattern ¶
type StringConfig ¶
type StringConfig struct { Name string `yaml:"name"` Type string `yaml:"type"` ConvertFromCharset string `yaml:"convertFromCharset"` Logger *logrus.Entry }
func (*StringConfig) GetName ¶
func (config *StringConfig) GetName() string
func (*StringConfig) Primitive ¶
func (config *StringConfig) Primitive() bool
Click to show internal directories.
Click to hide internal directories.