Documentation
¶
Index ¶
- Constants
- func CompareHashPassword(password, hash string) error
- func HashPassword(password string) (string, error)
- func IsSupportedCurrency(currency string) bool
- func RandomCurrency() string
- func RandomEmail(name string) string
- func RandomInt(min, max int64) int64
- func RandomMoney() int64
- func RandomName() string
- func RandomString(leng int) string
- type Config
Constants ¶
View Source
const ( USD = "USD" BRL = "BRL" KWZ = "KWZ" )
Variables ¶
This section is empty.
Functions ¶
func CompareHashPassword ¶
func HashPassword ¶
func IsSupportedCurrency ¶
func RandomCurrency ¶
func RandomCurrency() string
func RandomEmail ¶
func RandomMoney ¶
func RandomMoney() int64
func RandomName ¶
func RandomName() string
func RandomString ¶
Types ¶
type Config ¶
type Config struct { DBdriver string `mapstructure:"DB_DRIVER"` DBsource string `mapstructure:"DB_SOURCE"` ServerAddress string `mapstructure:"SERVER_ADDRESS"` TokenSimetricKey string `mapstructure:"TOKEN_SIMETRIC_KEY"` AcessTokenDuration time.Duration `mapstructure:"ACCESS_TOKEN_DURATION"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.