Documentation
¶
Overview ¶
Package contracts provides contract version validation for go-platform Ensures SSOT compliance by validating proto generation consistency
Index ¶
Constants ¶
View Source
const ( // Expected minimum versions (should match contracts/Makefile) MinBufVersion = "v1.47.0" // Maximum age for generated code (hours) MaxGeneratedAge = 72 )
Variables ¶
This section is empty.
Functions ¶
func GetContractInfo ¶
func GetContractInfo() map[string]interface{}
GetContractInfo returns contract information for health checks
func ValidateContractConsistency ¶
func ValidateContractConsistency() error
ValidateContractConsistency performs deeper consistency checks
func ValidateContractVersion ¶
func ValidateContractVersion() error
ValidateContractVersion validates proto generation version consistency Returns error if validation fails, causing startup to abort
Types ¶
Click to show internal directories.
Click to hide internal directories.