utils

package
v0.0.0-...-89dfb23 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCookie

func ClearCookie(c *fiber.Ctx, name string)

func ErrorHandler

func ErrorHandler(c *fiber.Ctx, err error) error

func GetUser

func GetUser(c *fiber.Ctx) *uint

func ParseBody

func ParseBody(ctx *fiber.Ctx, body interface{}) *fiber.Error

func ParseBodyAndValidate

func ParseBodyAndValidate(ctx *fiber.Ctx, body interface{}) *fiber.Error

func SetCookie

func SetCookie(c *fiber.Ctx, name string, value string, duration string)

func Validate

func Validate(payload interface{}) *fiber.Error

Validate validates the input struct

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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