Documentation ¶
Overview ¶
Package for web app configuration
Index ¶
- func DBConfig() string
- func GetAll() map[string]string
- func GetCnReaderHome() string
- func GetCnWebHome() string
- func GetEnvIntValue(key string, defValue int) int
- func GetFromEmail() string
- func GetPasswordResetURL() string
- func GetPort() int
- func GetSiteDomain() string
- func GetVar(key string) string
- func GetVarWithDefault(key, defaultVal string) string
- func InitWeb() error
- func PasswordProtected() bool
- func UseDatabase() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCnReaderHome ¶
func GetCnReaderHome() string
The home directory of the Chinese Notes project
func GetEnvIntValue ¶
func GetVarWithDefault ¶ added in v0.0.17
Gets a configuration value with given default
func PasswordProtected ¶ added in v0.0.17
func PasswordProtected() bool
PasswordProtected gets whether the web site is password projected.
func UseDatabase ¶ added in v0.0.17
func UseDatabase() bool
PasswordProtected gets whether the web site is password projected.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.