handler_http

package
v0.0.0-...-9a2df54 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Log    logger.Interface
	Config *config.Config
	Repo   entity.IRepository
}

func NewHandler

func NewHandler(repo entity.IRepository, config *config.Config, Log logger.Interface) *Handler

func (*Handler) Error500

func (h *Handler) Error500(c *fiber.Ctx) error

func (*Handler) ErrorReturned

func (h *Handler) ErrorReturned(c *fiber.Ctx) error

Error returned this way in a handler are resolved in the errorHandler middleware

func (*Handler) ListViaDbHelpers

func (h *Handler) ListViaDbHelpers(db *bun.DB) fiber.Handler

func (*Handler) ListViaRepository

func (h *Handler) ListViaRepository(c *fiber.Ctx) error

func (*Handler) Profile

func (h *Handler) Profile(c *fiber.Ctx) error

func (*Handler) Profile2

func (h *Handler) Profile2(c *fiber.Ctx) error

func (*Handler) Welcome

func (h *Handler) Welcome(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳