Documentation
¶
Overview ¶
Package pricing contains shared validation for persisted pricing facts.
Index ¶
Constants ¶
View Source
const ( PlatformPriceRatioMin = 0.0 PlatformPriceRatioMax = 1000.0 )
Variables ¶
View Source
var ErrInvalidModelPrices = errors.New("invalid model prices")
Functions ¶
func ValidateModelPrices ¶
ValidateModelPrices enforces the persisted four-bucket model-price contract. Zero is a valid price; negative and non-finite amounts are not.
func ValidatePlatformPriceRatio ¶
ValidatePlatformPriceRatio enforces the canonical closed interval used by channel writes and every server-side pricing consumer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.