Documentation
¶
Index ¶
- func GetAppName() string
- func GetBackendURL() string
- func GetDataDir(path string) string
- func GetDataFilesDir(path string) string
- func GetFrontendURL() string
- func GetInitPropsForPipeline(pipelineName string) map[string]any
- func GetIsDev() bool
- func GetLocalBackendURL() string
- func GetLocalFrontendURL() string
- func GetLogFilesizeLimit() int64
- func GetPrefixesSeparator() string
- func GetRuntimeConfigReloadMS() int64
- func GetSecretsPrefix() string
- func GetStaticFrontendURL() string
- func GetURLPort(url string) string
- func GetWebsocketSleepUS() int64
- func LoadConfigs(suConfigPath, rtConfigPath string) error
- func ReloadRuntimeConfig() string
- type ConfigRuntime
- type ConfigStartup
- type CorsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAppName ¶
func GetAppName() string
func GetBackendURL ¶
func GetBackendURL() string
func GetDataDir ¶
func GetDataFilesDir ¶
func GetFrontendURL ¶
func GetFrontendURL() string
func GetInitPropsForPipeline ¶
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 LoadConfigs ¶
func ReloadRuntimeConfig ¶
func ReloadRuntimeConfig() string
Types ¶
type ConfigRuntime ¶
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
Click to show internal directories.
Click to hide internal directories.