middleware

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MidAccess  fiber.Handler
	MidRefresh fiber.Handler
)

Functions

func Auth

func Auth(base64key string, ar domain.AuthService) fiber.Handler

func CheckCredentials

func CheckCredentials(srvc domain.UserRepository) fiber.Handler

func CheckIfProductExistsByID added in v0.0.2

func CheckIfProductExistsByID(srvc domain.ProductService) fiber.Handler

func CheckIfProfileExistsByID

func CheckIfProfileExistsByID(srvc domain.ProfileService) fiber.Handler

func CheckIfUserExistsByEmail

func CheckIfUserExistsByEmail(srvc domain.UserService) fiber.Handler

func CheckIfUserExistsByID

func CheckIfUserExistsByID(srvc domain.UserService) fiber.Handler

func CheckProductPermission added in v0.0.2

func CheckProductPermission(c *fiber.Ctx) error

func CheckProfilePermission

func CheckProfilePermission(c *fiber.Ctx) error

func CheckUserPermission

func CheckUserPermission(c *fiber.Ctx) error

func GetDTO added in v0.0.3

func GetDTO(data interface{}) fiber.Handler

func GetGenericFilter added in v0.0.8

func GetGenericFilter(c *fiber.Ctx) error

func GetRequestLanguage

func GetRequestLanguage(c *fiber.Ctx) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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