Documentation
¶
Overview ¶
Package codes is the closed registry of stable, machine-readable problem codes. Every typed error and every domain outcome that crosses a boundary carries one, so a single identifier joins the Go value, the structured log, the HTTP/JSON body, the CLI message, and the docs. Codes are namespaced by subsystem (NAMESPACE-### ); the string is a stable contract — never reword an existing code, add a new one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Code ¶
type Code string
Code is one distinct problem condition.
const ( GateNotClassified Code = "GATE-001" // PR never finalized a plan; apply fails closed GateNotSatisfied Code = "GATE-002" // a required grant is not yet ACTIVE GateUnconfirmable Code = "GATE-003" // gate state could not be freshly confirmed (backend unreachable) GateUnreachable Code = "GATE-004" // the approval server itself is unreachable (transport failure) )
Gate-check outcomes (apply-time, fail-closed pre-check).
const (
Internal Code = "SRV-001" // unexpected server-side error
)
Server-internal.
const (
UnknownStatus Code = "WIRE-001" // a decoded payload carried a status outside the known set
)
Wire / protocol decode.
type Coded ¶
type Coded interface {
Code() Code
}
Coded is implemented by errors and outcome values that carry a Code.
Click to show internal directories.
Click to hide internal directories.