acontext

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CsrfTokenKey = ContextKey("csrfToken")
View Source
var UserIDKey = ContextKey("userID")

Functions

func CsrfToken

func CsrfToken(ctx echo.Context) string

func User

func User[T any](ctx T) adatabase.User

func UserID

func UserID[T any](ctx T) string

func UserIsAuthenticated

func UserIsAuthenticated[T any](ctx T) bool

Types

type ContextKey

type ContextKey string

Jump to

Keyboard shortcuts

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