Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEV string = "development" PROD string = "production" TEST string = "test" )
Variables ¶
View Source
var ( // App settings. Env string = DEV AppUrl string AppSubUrl string // build BuildVersion string BuildCommit string BuildStamp int64 // Paths LogsPath string HomePath string DataPath string // Log settings. LogModes []string LogConfigs []util.DynMap // Http server options Protocol Scheme Domain string HttpAddr, HttpPort string SshPort int CertFile, KeyFile string RouterLogging bool StaticRootPath string EnableGzip bool EnforceDomain bool // Security settings. SecretKey string LogInRememberDays int CookieUserName string CookieRememberName string DisableGravatar bool EmailCodeValidMinutes int DataProxyWhiteList map[string]bool // User settings AllowUserSignUp bool AllowUserOrgCreate bool AutoAssignOrg bool AutoAssignOrgRole string VerifyEmailEnabled bool // Http auth AdminUser string AdminPassword string AnonymousEnabled bool AnonymousOrgName string AnonymousOrgRole string // Auth proxy settings AuthProxyEnabled bool AuthProxyHeaderName string AuthProxyHeaderProperty string AuthProxyAutoSignUp bool // Basic Auth BasicAuthEnabled bool // Session settings. SessionOptions session.Options // Global setting objects. Cfg *ini.File ConfRootPath string IsWindows bool // PhantomJs Rendering ImagesDir string PhantomDir string ReportingEnabled bool GoogleAnalyticsId string GoogleTagManagerId string // LDAP LdapEnabled bool LdapConfigFile string // SMTP email settings Smtp SmtpSettings // QUOTA Quota QuotaSettings )
Functions ¶
func LogConfigurationInfo ¶
func LogConfigurationInfo()
func NewConfigContext ¶
func NewConfigContext(args *CommandLineArgs) error
Types ¶
type CommandLineArgs ¶
type GlobalQuota ¶
type GlobalQuota struct { Org int64 `target:"org"` User int64 `target:"user"` DataSource int64 `target:"data_source"` Dashboard int64 `target:"dashboard"` ApiKey int64 `target:"api_key"` Session int64 `target:"-"` }
func (*GlobalQuota) ToMap ¶
func (q *GlobalQuota) ToMap() map[string]int64
type OrgQuota ¶
type QuotaSettings ¶
type QuotaSettings struct { Enabled bool Org *OrgQuota User *UserQuota Global *GlobalQuota }
type SmtpSettings ¶
Click to show internal directories.
Click to hide internal directories.