Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFileUsed ¶
func ConfigFileUsed() string
Types ¶
type Config ¶
type Config struct { Mode string Serve struct { Domain string APIURL string StartupMessage bool Public struct { Port string Host string } } SQL struct { DSN string Driver string } Argon2 struct { Memory uint32 Iterations uint32 Parallelism uint8 SaltLength uint32 KeyLength uint32 } Session struct { Cookie string Lifespan time.Duration } OAuth struct { StateCookie string CookieLifespan time.Duration Google oauth2.Config GitHub oauth2.Config LinkedIn oauth2.Config } Client struct { WebURL string } Mail struct { SMTP struct { From string Password string Host, Port string } } Cache struct { Redis struct { DSN string Password string DB int } } CORS struct { AllowedOrigins []string AllowedMethods []string AllowedHeaders []string AllowCredentials bool } External struct { IPGeoLocation struct { APIKey string } } // contains filtered or unexported fields }
func (*Config) IsDevelopment ¶
func (*Config) IsProduction ¶
func (*Config) PublicListenOn ¶
Click to show internal directories.
Click to hide internal directories.