classifier

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2016 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registry = make(map[string]provider)

Global classifier registry

Functions

func Register

func Register(key string, p provider) error

Adds a classifier to the registry

Types

type Classifier

type Classifier struct {
	// Classifier key
	Key string `json:"key"`

	// Classifier value
	Value string `json:"value"`
}

func Get

func Get(key string) (*Classifier, error)

Evaluates a classifier provider and returns the classifier value

Jump to

Keyboard shortcuts

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