Documentation
¶
Index ¶
- Constants
- func GetBillingExpr(model string) (string, bool)
- func GetBillingExprCopy() map[string]string
- func GetBillingMode(model string) string
- func GetBillingModeCopy() map[string]string
- func GetPricingSyncData(base map[string]any) map[string]any
- func SmokeTestExpr(exprStr string) error
- type BillingSetting
Constants ¶
View Source
const ( BillingModeRatio = "ratio" BillingModeTieredExpr = "tiered_expr" BillingModeField = "billing_mode" BillingExprField = "billing_expr" )
Variables ¶
This section is empty.
Functions ¶
func GetBillingExpr ¶
func GetBillingExprCopy ¶
func GetBillingMode ¶
func GetBillingModeCopy ¶
func SmokeTestExpr ¶
Types ¶
type BillingSetting ¶
type BillingSetting struct {
BillingMode *types.RWMap[string, string] `json:"billing_mode"`
BillingExpr *types.RWMap[string, string] `json:"billing_expr"`
}
BillingSetting is managed by config.GlobalConfig.Register. DB keys: billing_setting.billing_mode, billing_setting.billing_expr
Click to show internal directories.
Click to hide internal directories.