module
import "github.com/prescriptoo/prescriptoo-api/services/identity/module"Package module provides the identity service boundary for the monolith.
Index
- func ValidateConfig(env config.Env) error
- type Module
- func NewModule(bus events.Bus, db *pgxpool.Pool, env config.Env, sender email.Sender) (*Module, error)
- func (m *Module) AccountStatuses() identitypublic.AccountStatusManager
- func (m *Module) ActiveAccounts() identitypublic.ActiveAccountLocker
- func (m *Module) Administration() identitypublic.AdminIdentityService
- func (m *Module) Authentication() identitypublic.AuthenticationService
- func (m *Module) ConfigureAudit(writer audit.TransactionalRecorderFactory)
- func (m *Module) Identity() types.IIdentityService
- func (m *Module) RegisterHuma(api huma.API, _ *pgxpool.Pool)
- func (m *Module) Registration() identity.TransactionalRegistration
func ValidateConfig
func ValidateConfig(env config.Env) errorValidateConfig rejects missing signing keys and unreasonable/overflowing TTLs.
type Module
Module exposes identity HTTP operations to the monolith.
type Module struct {
module.Module
// contains filtered or unexported fields
}func NewModule
func NewModule(bus events.Bus, db *pgxpool.Pool, env config.Env, sender email.Sender) (*Module, error)NewModule permits a nil database only for documentation and route tests. Such a module returns 503 from authentication operations and never issues credentials.
func (*Module) AccountStatuses
func (m *Module) AccountStatuses() identitypublic.AccountStatusManagerAccountStatuses returns the Identity-owned administrative status capability.
func (*Module) ActiveAccounts
func (m *Module) ActiveAccounts() identitypublic.ActiveAccountLockerActiveAccounts exposes Identity's account-lock capability to affiliation writers. The returned adapter participates in the supplied business transaction and does not change account state, create sessions, or require an audit writer of its own.
func (*Module) Administration
func (m *Module) Administration() identitypublic.AdminIdentityServiceAdministration returns the account provisioning and lookup service used by Admin.
func (*Module) Authentication
func (m *Module) Authentication() identitypublic.AuthenticationServiceAuthentication returns credential authentication with an optional eligibility check.
func (*Module) ConfigureAudit
func (m *Module) ConfigureAudit(writer audit.TransactionalRecorderFactory)ConfigureAudit enables mandatory recording on the provider's persistent mutations.
func (*Module) Identity
func (m *Module) Identity() types.IIdentityServiceIdentity returns the shared identity-verification service.
func (*Module) RegisterHuma
func (m *Module) RegisterHuma(api huma.API, _ *pgxpool.Pool)RegisterHuma registers identity HTTP operations on the shared API.
func (*Module) Registration
func (m *Module) Registration() identity.TransactionalRegistrationRegistration exposes account creation for atomic cross-service onboarding.
Generated by gomarkdoc