Documentation
¶
Overview ¶
Package sessionwiring centralises the construction of the long-lived session.Manager that the HTTP API server and the housekeeper subcommand share. The Valkey-backed session.Repository and OAuth2 credentials.Builder it needs are no longer built here; both come from the module registry, loaded by business.Main (or the housekeeper subcommand) before this is invoked.
Index ¶
- func CredsBuilder(ctx *sessionmanager.Context, cfg *config.Config) (credentials.Builder, error)
- func InitSessionManager(ctx *sessionmanager.Context, cfg *config.Config, trust sessionmanager.Trust) (_ *session.Manager, closeFn func(), _ error)
- func SessionRepository(ctx *sessionmanager.Context, cfg *config.Config) (session.Repository, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CredsBuilder ¶
func CredsBuilder(ctx *sessionmanager.Context, cfg *config.Config) (credentials.Builder, error)
CredsBuilder resolves the credentials module loaded under the ID configured in cfg.Credentials.Module() and returns its credentials.Builder.
func InitSessionManager ¶
func InitSessionManager(ctx *sessionmanager.Context, cfg *config.Config, trust sessionmanager.Trust) (_ *session.Manager, closeFn func(), _ error)
InitSessionManager builds a session.Manager from the supplied config and trust module, using session repository and credential modules already loaded in ctx. The returned closeFn is a no-op kept for API compatibility — the underlying valkey client is owned by the sessionstore module and closed by the framework's reverse-load-order shutdown.
func SessionRepository ¶
func SessionRepository(ctx *sessionmanager.Context, cfg *config.Config) (session.Repository, error)
SessionRepository resolves the session repository module loaded under the ID configured in cfg.ValKey.Module() and returns its session.Repository.
Types ¶
This section is empty.