appcontext

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CtxKeyCurrentUser ctxKey = "currentUser"
	CtxKeyFiberCtx    ctxKey = "fiberCtx"
)

Functions

func CurrentUser

func CurrentUser(ctx context.Context) *ent.User

func FiberCtx

func FiberCtx(ctx context.Context) *fiber.Ctx

func WithCurrentUser

func WithCurrentUser(ctx context.Context, user *ent.User) context.Context

func WithFiberCtx

func WithFiberCtx(ctx context.Context, fiberCtx *fiber.Ctx) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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