middleware

package
v0.0.0-...-e98d214 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MidAccess  fiber.Handler
	MidRefresh fiber.Handler
)
View Source
var ErrInvalidID error = errors.New("invalid id")

Functions

func Auth

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

func GetAccountDTO

func GetAccountDTO(c *fiber.Ctx) error

func GetGenericFilter

func GetGenericFilter(c *fiber.Ctx) error

func GetOperatorDTO

func GetOperatorDTO(c *fiber.Ctx) error

func GetPasswordInputDTO

func GetPasswordInputDTO(c *fiber.Ctx) error

func GetPhoneDTO

func GetPhoneDTO(c *fiber.Ctx) error

func GetProfileDTO

func GetProfileDTO(c *fiber.Ctx) error

func GetRequestLanguage

func GetRequestLanguage(c *fiber.Ctx) error

func GetSiteDTO

func GetSiteDTO(c *fiber.Ctx) error

func GetUserDTO

func GetUserDTO(c *fiber.Ctx) error

func GetUserFilter

func GetUserFilter(c *fiber.Ctx) error

Types

type RequesttMiddleware

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

func NewRequesttMiddleware

func NewRequesttMiddleware(postgres *gorm.DB) *RequesttMiddleware

func (*RequesttMiddleware) AccountByID

func (s *RequesttMiddleware) AccountByID(c *fiber.Ctx) error

func (*RequesttMiddleware) OperatorByID

func (s *RequesttMiddleware) OperatorByID(c *fiber.Ctx) error

func (*RequesttMiddleware) PhoneByID

func (s *RequesttMiddleware) PhoneByID(c *fiber.Ctx) error

func (*RequesttMiddleware) ProfileByID

func (s *RequesttMiddleware) ProfileByID(c *fiber.Ctx) error

func (*RequesttMiddleware) SiteByID

func (s *RequesttMiddleware) SiteByID(c *fiber.Ctx) error

func (*RequesttMiddleware) UserByID

func (s *RequesttMiddleware) UserByID(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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