Documentation ¶
Index ¶
- Constants
- func CheckPass(hashedpass string, pass string) error
- func HashPassword(pass string) (string, error)
- func IsSupporredCurrency(currency string) bool
- func RandomCurrency() string
- func RandomEmail() string
- func RandomInt(min, max int64) int64
- func RandomMoney() int64
- func RandomOwnerName() string
- func RandomString(n int) string
- type Config
Constants ¶
View Source
const ( USD = "USD" EUR = "EUR" CAD = "CAD" )
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
func IsSupporredCurrency ¶
func RandomCurrency ¶
func RandomCurrency() string
func RandomEmail ¶
func RandomEmail() string
func RandomMoney ¶
func RandomMoney() int64
func RandomOwnerName ¶
func RandomOwnerName() string
Types ¶
type Config ¶
type Config struct { DBDriver string `mapstructure:"DB_DRIVER"` DBSource string `mapstructure:"DB_SOURCE"` HTTPSreverAddress string `mapstructure:"HTTP_SERVER_ADDRESS"` GRPCSreverAddress string `mapstructure:"GRPC_SERVER_ADDRESS"` TokenSymmetricLKey string `mapstructure:"TOKEN_SYMMETRIC_KEY"` AccessTokenDuration time.Duration `mapstructure:"ACCESS_TOKEN_DURATION"` RefreshTokenDuration time.Duration `mapstructure:"REFRESH_TOKEN_DURATUIN"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.