Documentation
¶
Overview ¶
Package featureregistry is the Go counterpart of the TypeScript feature catalog. Features are registered from init() functions in server/features/*.go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustValidate ¶
MustValidate asserts registry completeness in tests. Call from TestMain: featureregistry.MustValidate(m).
Types ¶
type Feature ¶
type Feature struct {
ID string
Title string
Description string
RPCIDs []string // proto scope:action IDs this feature implements
Status FeatureStatus
Since string // semver e.g. "1.4.0"
}
Feature is the Go counterpart of the TypeScript Feature interface. Every field is required — zero values are invalid.
type FeatureStatus ¶
type FeatureStatus string
FeatureStatus mirrors the TypeScript catalog's status field.
const ( StatusStable FeatureStatus = "stable" StatusExperimental FeatureStatus = "experimental" StatusDeprecated FeatureStatus = "deprecated" )
Click to show internal directories.
Click to hide internal directories.