deps

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package deps provides deps functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultServices

type DefaultServices struct {
	// contains filtered or unexported fields
}

DefaultServices is the default implementation that delegates to core package handlers.

func NewDefaultServices

func NewDefaultServices(deps *Deps) *DefaultServices

NewDefaultServices constructs the default Services implementation that delegates handler functions to the core package.

type Deps

type Deps struct {
	Cfg          config.File
	CfgProvider  configfx.Provider
	Env          config.Environment
	Logger       *slog.Logger
	Redis        rediscli.Client
	WebAuthn     *webauthn.WebAuthn
	AccountCache *accountcache.Manager
	Channel      backend.Channel
	Svc          Services
	LangManager  language.Manager
	TokenFlusher core.TokenFlusher
	// AuthApplication is the shared authentication application boundary for backchannel and IdP transports.
	AuthApplication core.AuthApplicationService
	// MessageResolver resolves policy-selected status messages for IDP UI rendering.
	MessageResolver localization.MessageResolver
	// PolicyDecision is the admission-enforcing application authority for Policy transports.
	PolicyDecision decisionservice.PreparedService
	// PolicyTransport resolves trusted HTTP protection evidence for the Policy boundary.
	PolicyTransport policyhttp.TransportEvidence
	// PluginRunner is the explicit process-owned native hook and backend runtime.
	PluginRunner *pluginruntime.Runner
	// Tolerate is the explicit boot-lifetime brute-force tolerance owner.
	Tolerate tolerate.Tolerate
	// HostServices is the immutable host implementation bundle for authn requests.
	HostServices core.AuthnHostServices
	// LDAPQueue is the explicit process-owned LDAP lookup queue.
	LDAPQueue core.LDAPRequestQueue
	// LDAPAuthQueue is the explicit process-owned LDAP authentication queue.
	LDAPAuthQueue core.LDAPAuthRequestQueue
	// RouteArtifacts owns immutable listener, template, and public-file material prepared before startup commit.
	RouteArtifacts *core.RouteArtifacts
	// CallerRateLimiter is the per-client-IP HTTP rate limiter shared with the global middleware; nil when disabled.
	CallerRateLimiter mdauth.CallerRateLimiter
}

Deps aggregates top-level dependencies to be injected into handler modules. Keep it minimal initially to avoid large refactors while enabling future DI.

func (*Deps) Auth

func (d *Deps) Auth() core.AuthDeps

Auth provides the exported Auth method.

func (*Deps) AuthPtr

func (d *Deps) AuthPtr() *core.AuthDeps

AuthPtr provides the exported AuthPtr method.

type Services

type Services any

Services defines the transport-agnostic business endpoints that HTTP handlers depend on. Each method returns a gin.HandlerFunc to keep registration code unchanged while allowing a clean DI seam.

Jump to

Keyboard shortcuts

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