sessionwiring

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

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