Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClassifierNotFound = errors.New("Classifier key not found")
ErrClassifierNotFound is returned if the requested classifier was not found in the classifier registry
View Source
var Registry = make(map[string]provider)
Registry provides a global registry for all classifiers
Functions ¶
Types ¶
type Classifier ¶
type Classifier struct { // Classifier key Key string `json:"key"` // Classifier value Value string `json:"value"` }
Classifier type contains a key/value pair repsenting a classifier
func Get ¶
func Get(key string) (*Classifier, error)
Get retrieves a classifier from the registry by looking up its key
Click to show internal directories.
Click to hide internal directories.