authmethodadmin

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Service assembly for the admin-side authentication-method subdomain of the identity module: method configuration, sender platforms and test sends. Only the module facade may reach it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	Auths repository.AuthRepo
	// Config snapshots the runtime-mutable sender settings per request.
	Config func() Snapshot
	// Reinitialize re-runs a sender subsystem's initialization after its
	// configuration changed ("email", "mobile" or "device").
	Reinitialize func(subsystem string)
}

Deps declares the subdomain's dependencies; the module facade forwards them from the composition root.

type GetAuthMethodConfigLogic

type GetAuthMethodConfigLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*GetAuthMethodConfigLogic) GetAuthMethodConfig

func (l *GetAuthMethodConfigLogic) GetAuthMethodConfig(req *dto.GetAuthMethodConfigRequest) (resp *dto.AuthMethodConfig, err error)

type GetAuthMethodListLogic

type GetAuthMethodListLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*GetAuthMethodListLogic) GetAuthMethodList

func (l *GetAuthMethodListLogic) GetAuthMethodList() (resp *dto.GetAuthMethodListResponse, err error)

type GetEmailPlatformLogic

type GetEmailPlatformLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*GetEmailPlatformLogic) GetEmailPlatform

func (l *GetEmailPlatformLogic) GetEmailPlatform() (resp *dto.AuthPlatformResponse, err error)

type GetSmsPlatformLogic

type GetSmsPlatformLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*GetSmsPlatformLogic) GetSmsPlatform

func (l *GetSmsPlatformLogic) GetSmsPlatform() (resp *dto.AuthPlatformResponse, err error)

type Service

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

Service is the auth-method administration entry point used by the identity facade.

func NewService

func NewService(deps Deps) *Service

func (*Service) GetAuthMethodConfig

func (s *Service) GetAuthMethodConfig(ctx context.Context, req *dto.GetAuthMethodConfigRequest) (*dto.AuthMethodConfig, error)

func (*Service) GetAuthMethodList

func (s *Service) GetAuthMethodList(ctx context.Context) (*dto.GetAuthMethodListResponse, error)

func (*Service) GetEmailPlatform

func (s *Service) GetEmailPlatform(ctx context.Context) (*dto.AuthPlatformResponse, error)

func (*Service) GetSmsPlatform

func (s *Service) GetSmsPlatform(ctx context.Context) (*dto.AuthPlatformResponse, error)

func (*Service) TestEmailSend

func (s *Service) TestEmailSend(ctx context.Context, req *dto.TestEmailSendRequest) error

func (*Service) TestSmsSend

func (s *Service) TestSmsSend(ctx context.Context, req *dto.TestSmsSendRequest) error

func (*Service) UpdateAuthMethodConfig

func (s *Service) UpdateAuthMethodConfig(ctx context.Context, req *dto.UpdateAuthMethodConfigRequest) (*dto.AuthMethodConfig, error)

type Snapshot

type Snapshot struct {
	EmailPlatform        string
	EmailPlatformConfig  string
	MobilePlatform       string
	MobilePlatformConfig string
	SiteName             string
}

Snapshot is the per-request view of the runtime-mutable sender platform settings.

type TestEmailSendLogic

type TestEmailSendLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*TestEmailSendLogic) TestEmailSend

func (l *TestEmailSendLogic) TestEmailSend(req *dto.TestEmailSendRequest) error

type TestSmsSendLogic

type TestSmsSendLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*TestSmsSendLogic) TestSmsSend

func (l *TestSmsSendLogic) TestSmsSend(req *dto.TestSmsSendRequest) error

type UpdateAuthMethodConfigLogic

type UpdateAuthMethodConfigLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*UpdateAuthMethodConfigLogic) UpdateAuthMethodConfig

func (l *UpdateAuthMethodConfigLogic) UpdateAuthMethodConfig(req *dto.UpdateAuthMethodConfigRequest) (resp *dto.AuthMethodConfig, err error)

func (*UpdateAuthMethodConfigLogic) UpdateGlobal

func (l *UpdateAuthMethodConfigLogic) UpdateGlobal(method string)

Jump to

Keyboard shortcuts

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