Documentation
¶
Index ¶
- Constants
- func CheckPassword(password string, hashedPassword string) error
- func GenerateRandomCurrency() string
- func GenerateRandomEmail() string
- func GenerateRandomInt(min, max int64) int64
- func GenerateRandomMoney() int64
- func GenerateRandomOwner() string
- func GenerateRandomString(n int) string
- func HashPassword(password string) (string, error)
- func IsSupportedCurrency(currency string) bool
- type Config
Constants ¶
View Source
const ( USD = "USD" EUR = "EUR" CAD = "CAD" SGD = "SGD" )
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func GenerateRandomCurrency ¶
func GenerateRandomCurrency() string
func GenerateRandomEmail ¶
func GenerateRandomEmail() string
func GenerateRandomInt ¶
func GenerateRandomMoney ¶
func GenerateRandomMoney() int64
func GenerateRandomOwner ¶
func GenerateRandomOwner() string
func GenerateRandomString ¶
func HashPassword ¶
func IsSupportedCurrency ¶
Types ¶
type Config ¶
type Config struct { DBDriver string `mapstructure:"DB_DRIVER"` DBSource string `mapstructure:"DB_SOURCE"` ServerAddress string `mapstructure:"SERVER_ADDRESS"` TokenSymetricKey string `mapstructure:"TOKEN_SYMETRIC_KEY"` AccessTokenDuration time.Duration `mapstructure:"ACCESS_TOKEN_DURATION"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.