Documentation
¶
Overview ¶
Package conf provides basic configuration handling from a file exposing a single global struct with all configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHelpMessage = `` /* 1128-byte string literal not displayed */
View Source
var LogWriter *io.PipeWriter
The pipe writer to wrap around standard logger. It is configured in main.
View Source
var Options struct { // The type of environment - PROD/TEST/DEV Env string // The address to listen on Address string // The HTTP address to listen on if the main address is HTTPS HTTPAddress string // ExternalAddress to our web tier ExternalAddress string // Security defintions Security struct { // The secret session key that is used to symmetrically encrypt sessions stored in cookies SessionKey string // Session timeout in minutes Timeout int // Recaptha secret Recaptcha string // Database encryption key used to encrypt the tokens DBKey string } // SSL configuration SSL struct { // The certificate file Cert string // The private key file Key string } // Slack application credentials Slack struct { // ClientID is passed to the OAuth request ClientID string // ClientSecret is used to verify Slack reply ClientSecret string } // VT token VT string // XFE credentials XFE struct { // Key to access the service Key string // Password to access the service Password string } // Cy API key Cy string // AF key AF string // DB properties DB struct { // ConnectString how to connect to DB ConnectString string // Username for the DB Username string // Password for DB Password string // ServerCA for TLS ServerCA string // ClientCert for TLS ClientCert string // ClientKey for TLS ClientKey string } G struct { Project string ConfName string MessageName string WorkName string Credentials struct { PrivateKeyID string `json:"private_key_id"` PrivateKey string `json:"private_key"` ClientEmail string `json:"client_email"` ClientID string `json:"client_id"` Type string `json:"type"` } } Web bool Worker bool ClamCtl string QueuePoll int }
Options anonymous struct holds the global configuration options for the server
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.