controllers

package
v0.0.0-...-a5f9b48 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthController

func NewHealthController(router fiber.Router) *healthController

NewHealthController returns a new health controller.

func NewUserController

func NewUserController(userUsecase usecases.UserUsecase) *userController

NewUserController returns a new user controller.

Types

type BaseController

type BaseController struct {
	Router fiber.Router
}

BaseController defines the common properties of all fiber controllers.

type HealthController

type HealthController interface {
	Health(ctx *fiber.Ctx) error
}

HealthController is the interface for the health controller.

type UserController

type UserController interface {
	Me(ctx *fiber.Ctx) error
	Create(ctx *fiber.Ctx) error
}

TODO: Split /me and /users in different subdomains UserController is the interface for the user controller.

Jump to

Keyboard shortcuts

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