Documentation
¶
Overview ¶
Package advisor runs a set of rules over a parsed plan tree and collects findings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advisor ¶
type Advisor struct {
// contains filtered or unexported fields
}
Advisor runs a fixed set of rules over every node in a plan tree.
type Finding ¶
type Finding struct {
Severity Severity
NodeID int // ID of the node that triggered this; look up via Plan.NodeByID
NodeType string // convenience copy of the node's type; avoids a lookup for display
Message string // short one-line summary
Detail string // longer explanation of why this is a problem
Suggestion string // what to do about it
}
Finding is one piece of feedback emitted by a rule for a specific plan node.
type Rule ¶
Rule inspects a single plan node and returns any findings. Returning nil or an empty slice means the node looks fine for this rule.
Click to show internal directories.
Click to hide internal directories.