Documentation
¶
Index ¶
- Variables
- func AdminOrg() string
- func GetConfigBatchSize() int
- func GetConfigBool(key string) bool
- func GetConfigDataSourceName() string
- func GetConfigInt64(key string) (int64, error)
- func GetConfigString(key string) string
- func GetLanguage(language string) string
- func IsDemoMode() bool
- func ReplaceDataSourceNameByDocker(dataSourceName string) string
- type Quota
- type WebConfig
Constants ¶
This section is empty.
Variables ¶
var WafConf string
Functions ¶
func AdminOrg ¶ added in v1.14.2
func AdminOrg() string
AdminOrg returns the namespace owner used for system-wide resources (apps, certs, providers, syncers, organizations seeded by init.go). Configurable via the `adminOrg` setting in app.conf or env var. Defaults to "admin". Set per install — Liquidity uses "admin"; other tenants may pick their own. There is no fallback: every "admin"-namespaced lookup in the codebase resolves through this single source.
func GetConfigBatchSize ¶
func GetConfigBatchSize() int
func GetConfigBool ¶
func GetConfigDataSourceName ¶
func GetConfigDataSourceName() string
func GetConfigInt64 ¶
func GetConfigString ¶
func GetLanguage ¶
func IsDemoMode ¶
func IsDemoMode() bool
IsDemoMode returns true unless running in a production environment. Enables test OTPs for repeating-digit phone numbers (e.g. +1999... → 999999). Disabled when ENV is any of: production, prod, main, mainnet. Everything else (dev, test, staging, local, unset) → test OTPs enabled.
Types ¶
type Quota ¶
type Quota struct {
Organization int `json:"organization"`
User int `json:"user"`
Application int `json:"application"`
Provider int `json:"provider"`
}
func GetConfigQuota ¶
func GetConfigQuota() *Quota
type WebConfig ¶
type WebConfig struct {
ShowGithubCorner bool `json:"showGithubCorner"`
ForceLanguage string `json:"forceLanguage"`
DefaultLanguage string `json:"defaultLanguage"`
IsDemoMode bool `json:"isDemoMode"`
StaticBaseUrl string `json:"staticBaseUrl"`
AiAssistantUrl string `json:"aiAssistantUrl"`
}
func GetWebConfig ¶
func GetWebConfig() *WebConfig