env

package
v0.0.0-...-cbbc4cb Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetachUi

func DetachUi() bool

DetachUi Controls if we host UI comm on this server. UI can be hosted elsewhere and must proxy any /api/* requests back to this server

func GetAppRootDir

func GetAppRootDir() string

func GetCachesRoot

func GetCachesRoot() string

func GetConfigName

func GetConfigName() string

func GetConfigPath

func GetConfigPath() string

func GetDataRoot

func GetDataRoot(configName ...string) string

func GetLogFile

func GetLogFile(configName string) string

func GetLogLevel

func GetLogLevel(configName string) int

func GetMongoDBName

func GetMongoDBName(configName ...string) string

func GetMongoURI

func GetMongoURI(configName ...string) string

func GetProxyAddress

func GetProxyAddress() string

func GetRouterHost

func GetRouterHost(configName ...string) string

func GetRouterPort

func GetRouterPort(configName ...string) string

func GetTestMediaPath

func GetTestMediaPath() string

func GetThumbsDir

func GetThumbsDir() string

GetThumbsDir Returns the path of the directory for storing cached files. This includes photo thumbnails, temp uploaded files, and zip files.

func GetTmpDir

func GetTmpDir() string

func GetUIPath

func GetUIPath() string

func GetWorkerCount

func GetWorkerCount() int

func ReadConfig

func ReadConfig(configName string) (map[string]any, error)

func ReadTypesConfig

func ReadTypesConfig(target any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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