Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEV string = "development" PROD string = "production" TEST string = "test" )
Variables ¶
View Source
var ( // App settings. Env string = DEV InstanceId string 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 HttpAddr, HttpPort string SshPort int CertFile, KeyFile string RouterLogging bool StaticRootPath string EnableGzip bool // Http auth AdminKey string // Global setting objects. Cfg *ini.File ConfRootPath string //Raintank Graphite Backend ElasticsearchUrl string TsdbUrl string StatsEnabled bool StatsAddr string StatsPrefix string StatsInterval int StatsTimeout time.Duration StatsBufferSize int Kafka KafkaSettings Alerting AlertingSettings // SMTP email settings Smtp SmtpSettings // QUOTA Quota QuotaSettings )
Functions ¶
func LogConfigurationInfo ¶
func LogConfigurationInfo()
func NewConfigContext ¶
func NewConfigContext(args *CommandLineArgs) error
Types ¶
type AlertingSettings ¶
type CommandLineArgs ¶
type GlobalQuota ¶
func (*GlobalQuota) ToMap ¶
func (q *GlobalQuota) ToMap() map[string]int64
type KafkaSettings ¶
type OrgQuota ¶
type QuotaSettings ¶
type QuotaSettings struct { Enabled bool Org *OrgQuota Global *GlobalQuota }
Click to show internal directories.
Click to hide internal directories.