Documentation ¶
Index ¶
- type IMemberController
- type MemberController
- func (mc *MemberController) DeleteMember(c *fiber.Ctx) error
- func (mc *MemberController) GetFollowers(c *fiber.Ctx) error
- func (mc *MemberController) GetMember(c *fiber.Ctx) error
- func (mc *MemberController) GetMemberByNick(c *fiber.Ctx) error
- func (mc *MemberController) UpdateMember(c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMemberController ¶
type IMemberController interface { GetMember(c *fiber.Ctx) error UpdateMember(c *fiber.Ctx) error DeleteMember(c *fiber.Ctx) error }
IMemberController is the interface for the member controller It defines the methods that the member controller must implement This is useful for mocking the member controller in unit tests
type MemberController ¶
type MemberController struct {
// contains filtered or unexported fields
}
MemberController is the controller for member endpoints
func NewController ¶
func NewController(storage *models.MemberStorage, logger *zerolog.Logger) *MemberController
func (*MemberController) DeleteMember ¶
func (mc *MemberController) DeleteMember(c *fiber.Ctx) error
DeleteMember handles the deletion of an user
func (*MemberController) GetFollowers ¶
func (mc *MemberController) GetFollowers(c *fiber.Ctx) error
func (*MemberController) GetMember ¶
func (mc *MemberController) GetMember(c *fiber.Ctx) error
GetMember retrieves user information based on the user ID
func (*MemberController) GetMemberByNick ¶
func (mc *MemberController) GetMemberByNick(c *fiber.Ctx) error
func (*MemberController) UpdateMember ¶
func (mc *MemberController) UpdateMember(c *fiber.Ctx) error
UpdateMember handles the updating of user information
Click to show internal directories.
Click to hide internal directories.