Documentation
¶
Overview ¶
Package flagfmt provides shared types and formatting for flag values and condition-chain JSON. All packages that read or write the conditions JSONB column should use these types to avoid drift.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayConditionValue ¶
DisplayConditionValue formats a protojson-encoded FlagValue (from the conditions JSONB column) for human display.
func DisplayString ¶
DisplayString formats a FlagValue for human display (admin UI, CLI show).
Types ¶
type StoredCondition ¶
type StoredCondition struct {
CEL *string `json:"cel"`
Value json.RawMessage `json:"value"`
}
StoredCondition is the JSON schema for a single entry in the conditions JSONB column. Sync writes it, evaluator and admin read it.
Click to show internal directories.
Click to hide internal directories.