Documentation
¶
Index ¶
- type Config
- type Controller
- func (u *Controller) AcceptInvite(c fiber.Ctx) error
- func (u *Controller) AcceptInviteForm(c fiber.Ctx) error
- func (u *Controller) Create(c fiber.Ctx) error
- func (u *Controller) Delete(c fiber.Ctx) error
- func (u *Controller) Edit(c fiber.Ctx) error
- func (u *Controller) InviteForm(c fiber.Ctx) error
- func (u *Controller) List(c fiber.Ctx) error
- func (u *Controller) New(c fiber.Ctx) error
- func (u *Controller) SendInvite(c fiber.Ctx) error
- func (u *Controller) ShareRecipients(c fiber.Ctx) error
- func (u *Controller) Update(c fiber.Ctx) error
- type Sender
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(usersRepository usersRepository, invitationsRepository invitationsRepository, usersCfg Config, sender Sender, translator i18n.Translator) *Controller
NewController returns a new instance of the users controller
func (*Controller) AcceptInvite ¶ added in v4.15.0
func (u *Controller) AcceptInvite(c fiber.Ctx) error
AcceptInvite processes the invitation acceptance
func (*Controller) AcceptInviteForm ¶ added in v4.15.0
func (u *Controller) AcceptInviteForm(c fiber.Ctx) error
AcceptInviteForm shows the form to accept an invitation
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) InviteForm ¶ added in v4.15.0
func (u *Controller) InviteForm(c fiber.Ctx) error
InviteForm shows the invitation form
func (*Controller) List ¶
func (u *Controller) List(c fiber.Ctx) error
List list all users registered in the database
func (*Controller) SendInvite ¶ added in v4.15.0
func (u *Controller) SendInvite(c fiber.Ctx) error
SendInvite sends an invitation email to the specified address
func (*Controller) ShareRecipients ¶ added in v4.19.0
func (u *Controller) ShareRecipients(c fiber.Ctx) error
ShareRecipients returns usernames and names for autocomplete.
Click to show internal directories.
Click to hide internal directories.