Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileRecognizerInfoLoader ¶
type FileRecognizerInfoLoader struct {
Path string
}
FileRecognizerInfoLoader struct loads config from provided path
func NewFileRecognizerInfoLoader ¶
func NewFileRecognizerInfoLoader(path string) (*FileRecognizerInfoLoader, error)
NewFileRecognizerInfoLoader creates FileRecognizerInfoLoader instance
func (*FileRecognizerInfoLoader) Get ¶
func (fs *FileRecognizerInfoLoader) Get(key string) (*recognizer.Info, error)
Get return recognizer Info by provided key from file key + '.yml'
type FileRecognizerMap ¶
type FileRecognizerMap struct { Path string // contains filtered or unexported fields }
FileRecognizerMap struct loads config from provided path
func NewFileRecognizerMap ¶
func NewFileRecognizerMap(path string) (*FileRecognizerMap, error)
NewFileRecognizerMap creates FileRecognizerMap instance
func (*FileRecognizerMap) Get ¶
func (fm *FileRecognizerMap) Get(name string) (string, error)
Get return recognizer ID by provided key
func (*FileRecognizerMap) GetAll ¶
func (fm *FileRecognizerMap) GetAll() ([]*api.Recognizer, error)
GetAll returns all information about installed recognizers
type RecognizersCache ¶
type RecognizersCache struct {
// contains filtered or unexported fields
}
RecognizersCache struct keeps current recognizer settings
Click to show internal directories.
Click to hide internal directories.