Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(repository usersRepository, usersCfg Config) *Controller
NewController returns a new instance of the users controller
func (*Controller) Create ¶
func (u *Controller) Create(c *fiber.Ctx) error
Create gathers information coming from the new user form and creates a new user
func (*Controller) Delete ¶
func (u *Controller) Delete(c *fiber.Ctx) error
Delete removes a user from the database
func (*Controller) Edit ¶
func (u *Controller) Edit(c *fiber.Ctx) error
Edit renders the edit user form
func (*Controller) List ¶
func (u *Controller) List(c *fiber.Ctx) error
List list all users registered in the database
func (*Controller) Update ¶
func (u *Controller) Update(c *fiber.Ctx) error
Update gathers information from the edit user form and updates user data
Source Files ¶
Click to show internal directories.
Click to hide internal directories.