Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GoEnv = os.Getenv("GO_ENV")
Functions ¶
This section is empty.
Types ¶
type CassandraConfig ¶
type Configuration ¶
type Configuration struct { Listen string `json:"listen"` Host string `json:"host"` UrlContext string `json:"url_context"` ContentPath string `json:"content_path"` Cert string `json:"cert"` Key string `json:"key"` Scheme string `json:"scheme"` Public bool `json:"public"` MetaDB string `json:"metadb"` BackingStore string `json:"backing_store"` ContentStore string `json:"content_store"` LogFile string `json:"logfile"` NumProcs int `json:"numprocs"` Aws *AwsConfig `json:"aws"` Cassandra *CassandraConfig `json:"cassandra"` Ldap *LdapConfig `json:"ldap"` MySQL *MySQLConfig `json:"mysql"` Graphite *GraphiteConfig `json:"graphite"` }
Configuration holds application configuration. Values will be pulled from environment variables, prefixed by keyPrefix. Default values can be added via tags.
func NewFromFile ¶
func NewFromFile(configFile string) (*Configuration, error)
func (*Configuration) DumpConfig ¶
func (c *Configuration) DumpConfig() map[string]interface{}
func (*Configuration) IsHTTPS ¶
func (c *Configuration) IsHTTPS() bool
func (*Configuration) IsPublic ¶
func (c *Configuration) IsPublic() bool
func (*Configuration) UseTLS ¶
func (c *Configuration) UseTLS() bool
type GraphiteConfig ¶
type LdapConfig ¶
Click to show internal directories.
Click to hide internal directories.