Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // App settings. AppVer string AppName string AppLogo string AppUrl string // Server settings. Protocol Scheme Domain string HttpAddr, HttpPort string SshPort int OfflineMode bool DisableRouterLog bool CertFile, KeyFile string StaticRootPath string // Security settings. InstallLock bool SecretKey string LogInRememberDays int CookieUserName string CookieRememberName string // Repository settings. RepoRootPath string ScriptType string // Picture settings. PictureService string DisableGravatar bool // Log settings. LogRootPath string LogModes []string LogConfigs []string // Cache settings. Cache cache.Cache CacheAdapter string CacheConfig string EnableRedis bool EnableMemcache bool // Session settings. SessionProvider string SessionConfig *session.Config SessionManager *session.Manager // Global setting objects. Cfg *goconfig.ConfigFile CustomPath string // Custom directory path. ProdMode bool RunUser string )
View Source
var ( MailService *Mailer OauthService *Oauther )
Functions ¶
func NewConfigContext ¶
func NewConfigContext()
NewConfigContext initializes configuration context. NOTE: do not print any log except error.
func NewServices ¶
func NewServices()
Types ¶
Click to show internal directories.
Click to hide internal directories.