config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

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

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

Jump to

Keyboard shortcuts

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