billing_setting

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BillingModeRatio      = "ratio"
	BillingModeTieredExpr = "tiered_expr"
)

Variables

This section is empty.

Functions

func GetBillingExpr

func GetBillingExpr(model string) (string, bool)

func GetBillingMode

func GetBillingMode(model string) string

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