Documentation ¶
Index ¶
- func CheckPassword(hashedPassword, newPassword string) bool
- func GenerateUuid() string
- func GenericRandomString(n int) string
- func HashPassword(s string) (string, error)
- func RandomEmail() string
- func RandomInt(min, max int64) int64
- func RandomName() string
- func RandomPassword() string
- func RandomString(n int, s string) string
- func RandomUuid() string
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func GenerateUuid ¶
func GenerateUuid() string
func GenericRandomString ¶
func HashPassword ¶
func RandomPassword ¶
func RandomPassword() string
func RandomString ¶
RandomString generates a random string of length n
Types ¶
type Config ¶
type Config struct { DBDriver string `mapstructure:"DB_DRIVER"` DBSource string `mapstructure:"DB_SOURCE"` ServerAddress string `mapstructure:"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.