Documentation
¶
Index ¶
- Variables
- func GenerateHashPassword(password string) (string, error)
- func GetActiveUser(c *gin.Context) (int64, error)
- func IsValidCurrency(currency string) bool
- func RandomEmail() string
- func RandomString(r int) string
- func VerifyPassword(password, hashedPassword string) error
- type Config
- type JWTToken
Constants ¶
This section is empty.
Variables ¶
View Source
var Currencies = map[string]string{
"USD": "USD",
"IDR": "IDR",
}
Functions ¶
func GenerateHashPassword ¶
func IsValidCurrency ¶
func RandomEmail ¶
func RandomEmail() string
func RandomString ¶
func VerifyPassword ¶
Types ¶
type Config ¶
type Config struct { DBDriver string `mapstructure:"DB_DRIVER"` DBSource string `mapstructure:"DB_SOURCE"` DBSourceLive string `mapstructure:"DB_SOURCE_LIVE"` SigningKey string `mapstructure:"SIGNING_KEY"` }
func LoadConfig ¶
type JWTToken ¶
type JWTToken struct {
// contains filtered or unexported fields
}
func NewJWTToken ¶
Click to show internal directories.
Click to hide internal directories.