utils

package
v0.0.0-...-c877830 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error) error

func CheckWithMessage

func CheckWithMessage(msg string, err error) error

func GenerateSecureToken

func GenerateSecureToken() string

func GetToken

func GetToken(c *fiber.Ctx) (*jwt.Token, error)

func GetUserIdFromToken

func GetUserIdFromToken(ctx *fiber.Ctx) (string, error)

func Length

func Length(p string) int

Types

type AppError

type AppError struct {
	ErrorMsg string
}

func (AppError) Error

func (e AppError) Error() string

Jump to

Keyboard shortcuts

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