config

package
v0.0.0-...-f818ad4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppName

func GetAppName() string

func GetBackendURL

func GetBackendURL() string

func GetDataDir

func GetDataDir(path string) string

func GetDataFilesDir

func GetDataFilesDir(path string) string

func GetFrontendURL

func GetFrontendURL() string

func GetInitPropsForPipeline

func GetInitPropsForPipeline(pipelineName string) map[string]any

func GetIsDev

func GetIsDev() bool

TODO: This technically isn't in config, but this is the most suitable place

func GetLocalBackendURL

func GetLocalBackendURL() string

func GetLocalFrontendURL

func GetLocalFrontendURL() string

func GetLogFilesizeLimit

func GetLogFilesizeLimit() int64

func GetPrefixesSeparator

func GetPrefixesSeparator() string

func GetRuntimeConfigReloadMS

func GetRuntimeConfigReloadMS() int64

func GetSecretsPrefix

func GetSecretsPrefix() string

func GetStaticFrontendURL

func GetStaticFrontendURL() string

func GetURLPort

func GetURLPort(url string) string

func GetWebsocketSleepUS

func GetWebsocketSleepUS() int64

RUNTIME

func LoadConfigs

func LoadConfigs(suConfigPath, rtConfigPath string) error

func ReloadRuntimeConfig

func ReloadRuntimeConfig() string

Types

type ConfigRuntime

type ConfigRuntime struct {
	WebsocketSleepUS int64 `json:"webSocketSleepUS"`
	Log              struct {
		FileSizeLimit int64 `json:"fileSizeLimit"`
	} `json:"log"`
	InitProps map[string]map[string]any `json:"initProps"`
}

type ConfigStartup

type ConfigStartup struct {
	AppName          string      `json:"appName"`
	BackendURL       string      `json:"backendURL"`
	LocalBackendURL  string      `json:"localBackendURL"`
	FrontendURL      string      `json:"frontendURL"`
	LocalFrontendURL string      `json:"localFrontendURL"`
	CorsOptions      CorsOptions `json:"corsOptions"`

	RuntimeConfigReloadMS int64 `json:"runtimeConfigReloadMS"`

	PrefixSeparator string `json:"prefixSeparator"`
	Prefixes        struct {
		Secret string `json:"secret"`
	} `json:"prefixes"`
	DataRootDir string `json:"dataRootDir"`
}

type CorsOptions

type CorsOptions struct {
	AllowedMethods []string `json:"allowedMethods"`
	AllowedOrigins []string `json:"allowedOrigins"`
}

func GetCorsOptions

func GetCorsOptions() CorsOptions

Jump to

Keyboard shortcuts

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