checker-sdk-go/checker
Pierre-Olivier Mercier 6be3578c33 checker: reorder Status with negatives for good, JSON as string
Make StatusUnknown the zero value (0) so an uninitialized CheckState
reads as "no signal yet" rather than as healthy. Push StatusOK and
StatusInfo to negative values so the natural int ordering matches
severity ordering: aggregators can simply take max() to compute the
worst status, and Unknown correctly sits above OK/Info but below Warn.

Status now (un)marshals as its string name ("OK", "WARN", ...) so the
wire format is stable across any future renumbering. UnmarshalJSON
still accepts raw ints for backward compatibility with older snapshots
and clients.
2026-04-08 22:16:41 +07:00
..
options.go Initial commit 2026-04-08 00:53:15 +07:00
registry.go registry: refuse duplicate registrations with a warning 2026-04-08 20:42:25 +07:00
registry_test.go registry: refuse duplicate registrations with a warning 2026-04-08 20:42:25 +07:00
server.go Initial commit 2026-04-08 00:53:15 +07:00
types.go checker: reorder Status with negatives for good, JSON as string 2026-04-08 22:16:41 +07:00