Documentation ¶
Index ¶
- Variables
- type User
- func (u *User) Create(db orm.DB, usr gorsk.User) (*gorsk.User, error)
- func (u *User) Delete(db orm.DB, user *gorsk.User) error
- func (u *User) List(db orm.DB, qp *gorsk.ListQuery, p *gorsk.Pagination) ([]gorsk.User, error)
- func (u *User) Update(db orm.DB, user *gorsk.User) error
- func (u *User) View(db orm.DB, id int) (*gorsk.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyExists = echo.NewHTTPError(http.StatusInternalServerError, "Username or email already exists.")
)
Custom errors
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct{}
User represents the client for user table
func (*User) List ¶
List returns list of all users retrievable for the current user, depending on role
Click to show internal directories.
Click to hide internal directories.