middleware

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

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentUserKey = "currentUser"

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(repo postgres.UsersRepo) func(http.Handler) http.Handler

func GetCurrentUserFromCTX

func GetCurrentUserFromCTX(ctx context.Context) (*models.User, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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