Documentation
¶
Overview ¶
Package access wires the access domain — admin-issued invites and agent tokens — into an fx module. This file is the only fx-aware part of the domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("access", fx.Provide( fx.Annotate(infrastructure.NewInviteRepo, fx.As(new(domain.InviteStore))), fx.Annotate(infrastructure.NewTokenRepo, fx.As(new(domain.TokenStore))), fx.Annotate(infrastructure.NewRandomSecret, fx.As(new(domain.SecretSource))), fx.Annotate(infrastructure.NewBcryptHasher, fx.As(new(domain.Hasher))), fx.Annotate(infrastructure.NewSystemClock, fx.As(new(domain.Clock))), fx.Annotate(provideInviteIssuer, fx.As(new(domain.InviteIssuer))), fx.Annotate(provideInviteRedeemer, fx.As(new(domain.InviteRedeemer))), fx.Annotate(application.NewTokenAdmin, fx.As(new(domain.TokenAdmin))), fx.Annotate(provideTokenAuthenticator, fx.As(new(domain.TokenAuthenticator))), fx.Annotate(application.NewAdminAuthenticator, fx.As(new(domain.AdminAuthenticator))), ), )
Module binds the access ports to their adapters and the five use cases. It expects the composition root to supply *persistence.AccessInvites, *persistence.AccessTokens, domain.Settings and a *slog.Logger.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package application holds the access use cases.
|
Package application holds the access use cases. |
|
Package domain holds the access contracts: credentials, ports and use-case interfaces.
|
Package domain holds the access contracts: credentials, ports and use-case interfaces. |
|
Package infrastructure holds the access adapters.
|
Package infrastructure holds the access adapters. |
Click to show internal directories.
Click to hide internal directories.