Documentation ¶
Index ¶
- type User
- func AllUsers() (users []*User, err error)
- func CreateUser(firstName string, lastName string, email string, password string) (*User, error)
- func DeleteUser(id string) (User, error)
- func FindUser(id string) (*User, error)
- func UpdateUser(id string, firstName *string, lastName *string, email *string, ...) (*User, error)
- func UserLogin(email string, password string) (user *User, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID string `sql:"type:uuid;primary_key;default:uuid_generate_v4()"` FirstName string `gorm:"type:varchar(128);not null;"` LastName string `gorm:"type:varchar(128);not null;"` Email string `gorm:"type:varchar(128);not null;unique_index"` EncryptedPassword string `gorm:"type:varchar(128);not null;index"` }
func CreateUser ¶
func DeleteUser ¶
func UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.