Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublicUser ¶
type User ¶
type User struct { Id string `json:"id"` Username string `json:"username"` Email string `json:"email"` Password string `json:"password"` CreatedAt time.Time `json:"createdAt"` }
func (User) Create ¶
func (u User) Create(form UserSignupForm) error
func (User) GetAll ¶
func (u User) GetAll() ([]PublicUser, error)
func (User) GetOneByName ¶
func (u User) GetOneByName(name string) (PublicUser, error)
type UserLoginForm ¶
type UserSignupForm ¶
Click to show internal directories.
Click to hide internal directories.