Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
CheckPassword checks if the provided password is correct or not
func HashPassword ¶
HashPassword returns the bcrypt hash of the password
func RandomBigInt ¶
func RandomEmail ¶
func RandomEmail() string
func RandomMoney ¶
func RandomMoney() int64
func RandomString ¶
Types ¶
type Config ¶
type Config struct { DBDriver string `mapstructure:"DB_DRIVER"` DBSource string `mapstructure:"DB_SOURCE"` ServerAddress string `mapstructure:"SERVER_ADDRESS"` TokenSymmetricKey string `mapstructure:"TOKEN_SYMMETRIC_KEY"` AccessTokenDuration time.Duration `mapstructure:"ACCESS_TOKEN_DURATION"` RefeshTokenDuration time.Duration `mapstructure:"REFRESH_TOKEN_DURATION"` }
config stores all configuration of the appication. the values are read by viper from a config file or environment variables
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.