mid

package
v0.0.0-...-ac0e98d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mid contains the set of middleware functions.

Index

Constants

View Source
const (
	AuthPayloadKey = "authorization_payload"
	UserKey        = "user"
)

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(maker maker.Maker, accessibleRoles []string) fiber.Handler

Authenticate authenticates user's payload and stores it in the context.

func GetUser

func GetUser(usrCore *user.Core) fiber.Handler

GetUser stores a user in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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