Documentation
¶
Overview ¶
Package mockstage implements the internal deterministic mock stage.
Index ¶
Constants ¶
View Source
const Name = "mock"
Name identifies this stage in classifications, stats, and logs.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config declares a mock stage: ordered matchers tried first-match-wins, and an optional default outcome for records no matcher hits. Without a default, unmatched records escalate with ErrUnclassified.
type Stage ¶
type Stage struct {
// contains filtered or unexported fields
}
Stage scores records with declared confidences.
func New ¶
New validates and compiles the config. At least one matcher or a default is required; every outcome needs a category and a confidence in [0, 1].
Click to show internal directories.
Click to hide internal directories.