Documentation ¶
Index ¶
- Variables
- func CheckPasswordHash(password, hash string) bool
- func CreateTestProducer() (kafka2.Producer, error)
- func GenerateCode() string
- func GetOffsetParam(c *gin.Context) (int, error)
- func GetSession(c *gin.Context) (*model.Session, error)
- func GetSessionTokenModel(c *gin.Context) *model.SessionToken
- 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 JwtKey = []byte(os.Getenv("JWT_KEY"))
View Source
var NameGenerator namegenerator.Generator
Functions ¶
func CheckPasswordHash ¶
func CreateTestProducer ¶
func GenerateCode ¶
func GenerateCode() string
func GetSessionTokenModel ¶ added in v0.1.27
func GetSessionTokenModel(c *gin.Context) *model.SessionToken
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.