billing_setting

package
v1.0.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BillingModeRatio      = "ratio"
	BillingModeTieredExpr = "tiered_expr"
	BillingModeField      = "billing_mode"
	BillingExprField      = "billing_expr"
)

Variables

This section is empty.

Functions

func GetBillingExpr

func GetBillingExpr(model string) (string, bool)

func GetBillingExprCopy added in v0.13.2

func GetBillingExprCopy() map[string]string

func GetBillingMode

func GetBillingMode(model string) string

func GetBillingModeCopy added in v0.13.2

func GetBillingModeCopy() map[string]string

func GetPricingSyncData added in v0.13.2

func GetPricingSyncData(base map[string]any) map[string]any

func SmokeTestExpr

func SmokeTestExpr(exprStr string) error

Types

type BillingSetting

type BillingSetting struct {
	BillingMode map[string]string `json:"billing_mode"`
	BillingExpr map[string]string `json:"billing_expr"`
}

BillingSetting is managed by config.GlobalConfig.Register. DB keys: billing_setting.billing_mode, billing_setting.billing_expr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL