middleware

package
v0.0.0-...-5a32912 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorized

func Authorized(c *fiber.Ctx) error

func BuildToken

func BuildToken(user domain.User) (string, error)

Types

type GoMiddleware

type GoMiddleware struct {
}

func InitMiddleware

func InitMiddleware() *GoMiddleware

InitMiddleware initialize the middleware

func (*GoMiddleware) CORS

func (m *GoMiddleware) CORS() fiber.Handler

CORS will handle the CORS middleware

Jump to

Keyboard shortcuts

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