Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallDir ¶
func InstallDir() (dir string)
func IsPrivateAccount ¶
func NewContext ¶
func NewContext() (err error)
Types ¶
type Properties ¶
type Properties struct {
// App settings
AppName string `json:"app_name"`
AppVer string `json:"app_ver"`
AppURL string `json:"app_url"`
AppDomain string `json:"app_domain"`
AppPath string `json:"app_path"`
ProdMode bool `json:"prod_mode"`
// Server settings
StaticRootPath string `json:"static_root_path"`
HTTPAddr string `json:"http_addr"`
HTTPPort string `json:"http_port"`
Protocol string `json:"protocol"`
// Database settings
DatabaseType string `json:"database_type"`
DatabasePath string `json:"database_path"`
// Global setting objects
CfgFilePath string `json:"cfg_file_path"`
// Mail settings
MailPort string `json:"mail_port"`
PrivateAccounts []string `json:"private_accounts"`
}
var ( Config Properties // Session settings SessionConfig session.Options )
Click to show internal directories.
Click to hide internal directories.