Directories
¶
Path | Synopsis |
---|---|
Package acceptlanguage provides [htadaptor.Middleware] that injects [language.Tag] into request context.Context which can be recovered using [htadaptor.LanguageFromContext].
|
Package acceptlanguage provides [htadaptor.Middleware] that injects [language.Tag] into request context.Context which can be recovered using [htadaptor.LanguageFromContext]. |
Package ctxlogger provides an [htadaptor.Middleware] that injects a given logger into context so that it can be recovered later in the stack for use.
|
Package ctxlogger provides an [htadaptor.Middleware] that injects a given logger into context so that it can be recovered later in the stack for use. |
Package idledown provides an [htadaptor.Middleware] that shuts the server down due to inactivity.
|
Package idledown provides an [htadaptor.Middleware] that shuts the server down due to inactivity. |
Package session presents a lazy context that manages session state with native key rotation support.
|
Package session presents a lazy context that manages session state with native key rotation support. |
secrets
Package secrets provides a synchronizable set of keys backed by a key-value store.
|
Package secrets provides a synchronizable set of keys backed by a key-value store. |
token
Package token provides [Authority]s that issue and validate access tokens.
|
Package token provides [Authority]s that issue and validate access tokens. |
token/gorilla
Package gorilla couples [securecookie.SecureCookie] token encoder with [secrets.Rotation].
|
Package gorilla couples [securecookie.SecureCookie] token encoder with [secrets.Rotation]. |
token/jwt
Package jwt provides [token.Authority] with secure JSON Web Tokens issuer defaults.
|
Package jwt provides [token.Authority] with secure JSON Web Tokens issuer defaults. |
Package tmodulator delays HTTP responses to protects wrapped endpoints from timing attacks.
|
Package tmodulator delays HTTP responses to protects wrapped endpoints from timing attacks. |
Package traceid provides [htadaptor.Middleware] that injects trace identifiers into request context.Context and a matching [slog.Handler] for populating the log records with the identifier.
|
Package traceid provides [htadaptor.Middleware] that injects trace identifiers into request context.Context and a matching [slog.Handler] for populating the log records with the identifier. |
Package unpanic provides [htadaptor.Middleware] that gracefully recovers from request panics.
|
Package unpanic provides [htadaptor.Middleware] that gracefully recovers from request panics. |
Click to show internal directories.
Click to hide internal directories.