Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine evaluates a ClassifyRequest against one or more regime packs.
func NewWithLoader ¶
NewWithLoader builds a multi-pack engine. defaultRegimes is used when the request omits regimes (after CLI/API config resolution callers may still pass them on the request).
func (*Engine) Classify ¶
func (e *Engine) Classify(req schema.ClassifyRequest) (schema.ClassifyResponse, error)
Classify runs rule matching for the resolved regimes.
Backward compatible shape: the top-level risk_tier / matched_rules fields always reflect the first resolved regime. classifications[] is only filled when more than one regime was evaluated, so the historical EU-only JSON golden remains byte-identical.
type ValidationError ¶
type ValidationError struct {
Details []string
}
ValidationError lists request problems.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.