authentication

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLoginRequest

func CheckLoginRequest() gin.HandlerFunc

CheckLoginRequest checks if the user is logged in and if not it returns an error this is for automated requests

func CheckLoginUser

func CheckLoginUser() gin.HandlerFunc

CheckLoginUser checks if the user is logged in and if not redirects to the login page this if for manual user requests

func SetRequiredFunctions

func SetRequiredFunctions(userExistFunc UserExistFunc, getUserByIDFunc GetUserByIDFunc, createUserFunc CreateUserFunc)

Types

type CreateUserFunc

type CreateUserFunc func(users.Minimal) ferror.FError

type GetUserByIDFunc

type GetUserByIDFunc func(string) (users.Minimal, ferror.FError)

type UserExistFunc

type UserExistFunc func(string) bool

Jump to

Keyboard shortcuts

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