Documentation
¶
Index ¶
- Constants
- func Enable(ctx context.Context, path string) context.Context
- func Enabled() bool
- func Enqueue(ctx context.Context, ectx EvalContext, exp ast.Value)
- func Factory() plugins.Factory
- func HTTPMiddleware(next http.Handler) http.Handler
- type Config
- type EvalContext
- type Impact
- type Job
- type JobID
- type Result
Constants ¶
View Source
const Name = "impact_analysis"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
DecisionLogs bool `json:"decision_logs"` // Also emit decision logs for secondary evals
}
Config represents the configuration for the impact analysis plugin
type EvalContext ¶
type Impact ¶
type Impact struct {
// contains filtered or unexported fields
}
Impact holds the state of a plugin instantiation
type Job ¶
type Result ¶
type Result struct {
NodeID string `json:"node_id"`
RequestID uint64 `json:"req_id,omitempty"`
DecisionID string `json:"decision_id,omitempty"`
ValueA *any `json:"value_a"`
ValueB *any `json:"value_b"`
Input *any `json:"input"`
Path string `json:"path"`
EvalNSA uint64 `json:"eval_ns_a"`
EvalNSB uint64 `json:"eval_ns_b"`
}
Click to show internal directories.
Click to hide internal directories.