Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomErrorHandler ¶ added in v0.0.17
func ErrHandler ¶
func GenerateConfig ¶
func GenerateConfig() fiber.Config
Types ¶
type AuthMiddleware ¶ added in v0.0.5
type AuthMiddleware struct { PublicKey string PrivateKey string AuthHeader string AuthHeaderDecode string Salt string }
func NewAuthMiddleware ¶ added in v0.0.7
func (*AuthMiddleware) DecodeToken ¶ added in v0.0.5
func (auth *AuthMiddleware) DecodeToken(ctx *fiber.Ctx) (err error)
type ReturnData ¶
type ReturnData[T any] struct { Code int `json:"code"` Success bool `json:"success"` Status string `json:"status"` Data T `json:"data"` }
func NewReturnData ¶ added in v0.0.17
func NewReturnData[T any](code int, success bool, status string, data T) ReturnData[T]
func (ReturnData[T]) WriteResponseBody ¶
func (rcv ReturnData[T]) WriteResponseBody(ctx *fiber.Ctx) error
Click to show internal directories.
Click to hide internal directories.