httpctx

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assets

func Assets(ctx context.Context) (any, bool)

func CSRFToken

func CSRFToken(ctx context.Context) (string, bool)

func IsHTMX

func IsHTMX(ctx context.Context) bool

func ReturnTo

func ReturnTo(ctx context.Context) (string, bool)

func ReturnToOrDefault

func ReturnToOrDefault(ctx context.Context, def string) string

func Roles

func Roles(ctx context.Context) (roles.Roles, bool)

func SessionID

func SessionID(ctx context.Context) (uuid.UUID, bool)

func UserID

func UserID(ctx context.Context) (uuid.UUID, bool)

func WithAssets

func WithAssets(ctx context.Context, a any) context.Context

func WithCSRF

func WithCSRF(ctx context.Context, token string) context.Context

func WithHTMX

func WithHTMX(ctx context.Context) context.Context

func WithReturnTo

func WithReturnTo(ctx context.Context, path string) context.Context

func WithRoles

func WithRoles(ctx context.Context, roles roles.Roles) context.Context

func WithSessionID

func WithSessionID(ctx context.Context, sessionID uuid.UUID) context.Context

func WithUserID

func WithUserID(ctx context.Context, id uuid.UUID) 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