Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize() error
Types ¶
type AsyncConfig ¶
type AsyncConfig struct {
Eager bool `mapstructure:"eager"`
}
type Config ¶
type Config struct { Database DatabaseConfig `mapstructure:"database"` JWT JWTConfig `mapstructure:"jwt"` Async AsyncConfig `mapstructure:"async"` Email EmailConfig `mapstructure:"email"` Redis RedisConfig `mapstructure:"redis"` S3 S3Config `mapstructure:"s3"` Logging LoggingConfig `mapstructure:"logging"` }
type DatabaseConfig ¶
type EmailConfig ¶
type JWTConfig ¶
type JWTConfig struct { LoginSecret string `mapstructure:"login_secret"` LoginExpireTime time.Duration `mapstructure:"login_expire_time"` VerificationSecret string `mapstructure:"verification_secret"` VerificationExpireTime time.Duration `mapstructure:"verification_expire_time"` RenewPasswordSecret string `mapstructure:"renew_password_secret"` RenewPasswordExpireTime time.Duration `mapstructure:"renew_password_expire_time"` }
type LoggingConfig ¶
type RedisConfig ¶
type RedisConfig struct {
Address string `mapstructure:"address"`
}
Click to show internal directories.
Click to hide internal directories.