users

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	gorm.Model
	Name    string `validate:"required"`
	Members []User
}

type Profile

type Profile struct {
	gorm.Model
	Username      string `validate:"required"`
	UsernameColor string `validate:"required,hsl"`
}

type User

type User struct {
	gorm.Model
	Email        string `validate:"required,email"`
	PasswordHash []byte
}

func NewUser

func NewUser(email, password string) (*User, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL