controller

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HomeController

type HomeController struct {
	DB contract.Database
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL