handlers

package
v0.0.0-...-e6f38c9 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(ctx *fiber.Ctx, err error) error

func Success

func Success(ctx *fiber.Ctx, data interface{}) error

Types

type PurchaseHandler

type PurchaseHandler struct {
	// contains filtered or unexported fields
}

func InitializePurchaseWebHanlder

func InitializePurchaseWebHanlder(core modules.Purchase) PurchaseHandler

func NewPurchaseWebHandler

func NewPurchaseWebHandler(core modules.Purchase) PurchaseHandler

func (PurchaseHandler) CreatePurchase

func (h PurchaseHandler) CreatePurchase(ctx *fiber.Ctx) error

type ResponseError

type ResponseError struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

func GetResponseError

func GetResponseError(err error) (int, ResponseError, bool)

Jump to

Keyboard shortcuts

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