Documentation
¶
Overview ¶
defines config for the application
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Provider = wire.NewSet(DatabaseProvider, NatsProvider, CacheProvider)
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { Mode string `mapstructure:"mode"` // Address(es) (comma-separated) of server(s) Addr string `mapstructure:"uri"` Username string Password string Ttl int64 `mapstructure:"ttl"` }
func CacheProvider ¶
type Database ¶
type Database struct { Driver string `mapstructure:"driver"` Uri string `mapstructure:"uri"` EncryptionKey string `mapstructure:"encryptionKey"` }
func DatabaseProvider ¶
type GoogleOauth ¶
type Nats ¶
func NatsProvider ¶
type OauthSecrets ¶
type OauthSecrets struct {
Google *GoogleOauth `mapstructure:"google"`
}
type Server ¶
type Server struct { Address string `mapstructure:"address"` Environment string `mapstructure:"environment"` ServerUrl string `mapstructure:"serverUrl"` InternalServerUrl string `mapstructure:"internalServerUrl"` SecretKey string `mapstructure:"secretKey"` FormbeeKey string `mapstructure:"formbeeKey"` SingleEventMode bool `mapstructure:"singleEventMode"` DisableSignups bool `mapstructure:"disableSignups"` }
Click to show internal directories.
Click to hide internal directories.