httpctx

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 4 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 ChallengeEnabled added in v0.1.14

func ChallengeEnabled(ctx context.Context) (bool, bool)

func ChallengeEnabledOrDefault added in v0.1.14

func ChallengeEnabledOrDefault(ctx context.Context, fallback bool) bool

func Email added in v0.1.17

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

func EmailOrDefault added in v0.1.17

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

func Flash added in v0.1.11

func Flash(ctx context.Context) (*flash.Message, bool)

func IsHTMX

func IsHTMX(ctx context.Context) bool

func OAuthNonce added in v0.1.18

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

func OAuthNonceOrDefault added in v0.1.18

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

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 WithChallengeEnabled added in v0.1.14

func WithChallengeEnabled(ctx context.Context, enabled bool) context.Context

func WithEmail added in v0.1.17

func WithEmail(ctx context.Context, id string) context.Context

func WithFlash added in v0.1.11

func WithFlash(ctx context.Context, f *flash.Message) context.Context

func WithHTMX

func WithHTMX(ctx context.Context) context.Context

func WithOAuthNonce added in v0.1.18

func WithOAuthNonce(ctx context.Context, nonce string) 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

type EmailKeyType added in v0.1.17

type EmailKeyType struct{}

Jump to

Keyboard shortcuts

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