Documentation
¶
Index ¶
- Constants
- func CheckPasswordHash(password, hash string) error
- func HashPassword(password string) (string, error)
- func IsEmail(value string) bool
- func IsSupportedCurrency(currency string) bool
- func RandomCurrency() string
- func RandomName(length int) string
- func RandomNumber(min, max int) int
- type Config
Constants ¶
View Source
const ( USD = "USD" EUR = "EUR" CAD = "CAD" )
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
func IsSupportedCurrency ¶
func RandomCurrency ¶
func RandomCurrency() string
func RandomName ¶
func RandomNumber ¶
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"`
}
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.