context

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PermissionCheckAccountFromContext

func PermissionCheckAccountFromContext(ctx context.Context) *models.Account

PermissionCheckAccountFromContext returns the original account for permission checks from the given context, or nil if not found.

func SessionAccount

func SessionAccount(ctx context.Context) *models.Account

SessionAccount returns current account model nolint:unused // temporary

func WithSessionAccount

func WithSessionAccount(ctx context.Context, accountObj *models.Account) context.Context

WithSessionAccount puts to the context account model

Types

This section is empty.

Jump to

Keyboard shortcuts

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