Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomLogger ¶
func GenerateRandomString ¶
GenerateRandomString generate a string of random characters of given length
Types ¶
type Configurations ¶
type Configurations struct { ServerAddress string DBHost string DBName string DBUser string DBPass string DBPort string DBConn string AccessTokenPrivateKeyPath string AccessTokenPublicKeyPath string RefreshTokenPrivateKeyPath string RefreshTokenPublicKeyPath string JwtExpiration int // in minutes SendGridApiKey string MailVerifCodeExpiration int // in hours PassResetCodeExpiration int // in minutes MailVerifTemplateID string PassResetTemplateID string }
Configurations wraps all the config variables required by the auth service
func NewConfigurations ¶
func NewConfigurations(logger *zap.Logger) *Configurations
NewConfigurations returns a new Configuration object
Click to show internal directories.
Click to hide internal directories.