conf

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WafConf string

Functions

func GetConfigBatchSize

func GetConfigBatchSize() int

func GetConfigBool

func GetConfigBool(key string) bool

func GetConfigDataSourceName

func GetConfigDataSourceName() string

func GetConfigInt64

func GetConfigInt64(key string) (int64, error)

func GetConfigString

func GetConfigString(key string) string

func GetLanguage

func GetLanguage(language string) string

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.

func ReplaceDataSourceNameByDocker

func ReplaceDataSourceNameByDocker(dataSourceName string) string

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

Jump to

Keyboard shortcuts

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