Documentation ¶
Index ¶
- Variables
- func CheckPasswordHash(password, hash string) bool
- func CreateTestProducer() (kafka2.Producer, error)
- func GenerateCode() string
- func HashPassword(password string) (string, error)
- func RandomEmailAddress() string
- func RandomUsername() string
- func SetupTestDatabase() *gorm.DB
- func ValidatePassword(password string) (minSize, digit, special, lowercase, uppercase bool)
- type InputFieldError
- type TestProducer
Constants ¶
This section is empty.
Variables ¶
View Source
var NameGenerator namegenerator.Generator
Functions ¶
func CheckPasswordHash ¶
func CreateTestProducer ¶
func GenerateCode ¶
func GenerateCode() string
func HashPassword ¶
func RandomEmailAddress ¶
func RandomEmailAddress() string
func RandomUsername ¶
func RandomUsername() string
func SetupTestDatabase ¶
func ValidatePassword ¶
Types ¶
type InputFieldError ¶
type InputFieldError struct { Input string `json:"input"` Message string `json:"message"` // contains filtered or unexported fields }
func NewInputFieldError ¶
func NewInputFieldError(input string, message string) *InputFieldError
type TestProducer ¶
type TestProducer struct{}
Click to show internal directories.
Click to hide internal directories.