Versions in this module Expand all Collapse all v1 v1.4.0 Jan 19, 2021 v1.3.0 Jan 13, 2021 Changes in this version + type NewUser struct + Email string + Name string + Password string + PasswordConfirm string + Roles []string + type PasswordGenerator struct + func (pf PasswordGenerator) Hash(password []byte) ([]byte, error) + type PasswordGeneratorInterface interface + Hash func(password []byte) ([]byte, error) + type User struct + DateCreated time.Time + DateUpdated time.Time + Email string + Name string + PasswordHash []byte + Roles pq.StringArray + Uuid string + func AddUser(ctx context.Context, db *sqlx.DB, n NewUser, now time.Time, ...) (*User, error) + func FindByEmail(ctx context.Context, db *sqlx.DB, email string) (User, error)