Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HomeController ¶
HomeController serves as the primary controller for home-related application features. It encapsulates the methods required to fulfill user requests for these specific endpoints.
func NewHomeController ¶
func NewHomeController(db contract.Database) *HomeController
NewHomeController initializes a new HomeController with the required dependencies.
Parameters:
- db: An implementation of the contract.Database interface.
func (*HomeController) Users ¶
func (c *HomeController) Users(ctx *http.Context)
Users processes requests for the user list resource. It acts as the final handler for the "/users" endpoint.
Parameters:
- ctx: The unified framework HTTP Context wrapper.
Click to show internal directories.
Click to hide internal directories.