webconfig

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package for web app configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBConfig

func DBConfig() string

func GetAll

func GetAll() map[string]string

Gets all configuration variables

func GetCnReaderHome

func GetCnReaderHome() string

The home directory of the Chinese Notes project

func GetCnWebHome

func GetCnWebHome() string

The home directory of the web application

func GetEnvIntValue

func GetEnvIntValue(key string, defValue int) int

func GetFromEmail

func GetFromEmail() string

Get environment variable for sending email from

func GetPasswordResetURL

func GetPasswordResetURL() string

Get the domain name of the site

func GetPort

func GetPort() int

Get environment variable for serving port

func GetSiteDomain

func GetSiteDomain() string

Get the domain name of the site

func GetVar

func GetVar(key string) string

Gets a configuration variable value

Types

This section is empty.

Jump to

Keyboard shortcuts

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