httpctx

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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