Documentation ¶
Index ¶
- Variables
- func Close(indexes List) error
- type Config
- type Fts5
- type Fts5Config
- type Index
- type List
- type Map
- type MapConfig
- type Noop
- type NoopConfig
- type Sqlite
- type SqliteConfig
- type SqlitePropertyConfig
- type Wildcard
- type WildcardConfig
- func (config *WildcardConfig) DoesHandleInput(input input.Config) bool
- func (config *WildcardConfig) DoesHandleProperty(property string) bool
- func (config *WildcardConfig) GetName() string
- func (config *WildcardConfig) ShouldIgnoreCase() bool
- func (config *WildcardConfig) Validate(inputs map[string]input.Config, log *logrus.Entry) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Fts5PropertyCollateAllowedValues = []string{"BINARY", "NOCASE", "RTIRM"}
View Source
var SqlitePropertyCollateAllowedValues = []string{"BINARY", "NOCASE", "RTIRM"}
Functions ¶
Types ¶
type Fts5 ¶
type Fts5 struct {
// contains filtered or unexported fields
}
func (*Fts5) GetRecordPositions ¶
type Fts5Config ¶
type Fts5Config struct { Name string `yaml:"name"` Type string `yaml:"type"` Dsn string `yaml:"dsn"` Input string `yaml:"input"` Prefix []int `yaml:"prefix"` Tokenize string `yaml:"tokenize"` Properties []string `yaml:"properties"` Logger *logrus.Entry }
func (*Fts5Config) DoesHandleInput ¶
func (config *Fts5Config) DoesHandleInput(input input.Config) bool
func (*Fts5Config) DoesHandleProperty ¶
func (config *Fts5Config) DoesHandleProperty(propertyName string) bool
func (*Fts5Config) GetName ¶
func (config *Fts5Config) GetName() string
type Index ¶
type Index interface { Name() string // Gets the indexed records matching all the given filters // The returned list is expected to be ordered from the // smallest position to the biggest GetRecordPositions(input input.Input, filters map[string]interface{}) (record.PositionIterator, error) Close() error }
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (*Map) GetRecordPositions ¶
type MapConfig ¶
type MapConfig struct { Name string `yaml:"name"` Type string `yaml:"type"` Input string `yaml:"input"` Properties []string `yaml:"properties"` Logger *logrus.Entry }
func (*MapConfig) DoesHandleInput ¶
func (*MapConfig) DoesHandleProperty ¶
type Noop ¶
type Noop struct {
// contains filtered or unexported fields
}
A noop index is able to search into any data, but very inefficiently. It does not index anything.
func (*Noop) GetRecordPositions ¶
type NoopConfig ¶
func (*NoopConfig) DoesHandleInput ¶
func (config *NoopConfig) DoesHandleInput(input input.Config) bool
func (*NoopConfig) DoesHandleProperty ¶
func (config *NoopConfig) DoesHandleProperty(property string) bool
func (*NoopConfig) GetName ¶
func (config *NoopConfig) GetName() string
type Sqlite ¶
type Sqlite struct {
// contains filtered or unexported fields
}
func (*Sqlite) GetRecordPositions ¶
type SqliteConfig ¶
type SqliteConfig struct { Name string `yaml:"name"` Type string `yaml:"type"` Dsn string `yaml:"dsn"` Input string `yaml:"input"` Properties []*SqlitePropertyConfig `yaml:"properties"` Logger *logrus.Entry }
func (*SqliteConfig) DoesHandleInput ¶
func (config *SqliteConfig) DoesHandleInput(input input.Config) bool
func (*SqliteConfig) DoesHandleProperty ¶
func (config *SqliteConfig) DoesHandleProperty(propertyName string) bool
func (*SqliteConfig) GetName ¶
func (config *SqliteConfig) GetName() string
type SqlitePropertyConfig ¶
type Wildcard ¶
type Wildcard struct {
// contains filtered or unexported fields
}
func NewWildcard ¶
func NewWildcard( config *WildcardConfig, inputs input.List, ) (*Wildcard, error)
func (*Wildcard) GetRecordPositions ¶
type WildcardConfig ¶
type WildcardConfig struct { Name string `yaml:"name"` Type string `yaml:"type"` Path string `yaml:"path"` Input string `yaml:"input"` Properties []string `yaml:"properties"` IgnoreCase *bool `yaml:"ignoreCase"` Logger *logrus.Entry }
func (*WildcardConfig) DoesHandleInput ¶
func (config *WildcardConfig) DoesHandleInput(input input.Config) bool
func (*WildcardConfig) DoesHandleProperty ¶
func (config *WildcardConfig) DoesHandleProperty(property string) bool
func (*WildcardConfig) GetName ¶
func (config *WildcardConfig) GetName() string
func (*WildcardConfig) ShouldIgnoreCase ¶
func (config *WildcardConfig) ShouldIgnoreCase() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.