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 ¶
- type Deps
- type GetAuthMethodConfigLogic
- type GetAuthMethodListLogic
- type GetEmailPlatformLogic
- type GetSmsPlatformLogic
- type Service
- func (s *Service) GetAuthMethodConfig(ctx context.Context, req *dto.GetAuthMethodConfigRequest) (*dto.AuthMethodConfig, error)
- func (s *Service) GetAuthMethodList(ctx context.Context) (*dto.GetAuthMethodListResponse, error)
- func (s *Service) GetEmailPlatform(ctx context.Context) (*dto.AuthPlatformResponse, error)
- func (s *Service) GetSmsPlatform(ctx context.Context) (*dto.AuthPlatformResponse, error)
- func (s *Service) TestEmailSend(ctx context.Context, req *dto.TestEmailSendRequest) error
- func (s *Service) TestSmsSend(ctx context.Context, req *dto.TestSmsSendRequest) error
- func (s *Service) UpdateAuthMethodConfig(ctx context.Context, req *dto.UpdateAuthMethodConfigRequest) (*dto.AuthMethodConfig, error)
- type Snapshot
- type TestEmailSendLogic
- type TestSmsSendLogic
- type UpdateAuthMethodConfigLogic
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 ¶
func (*GetAuthMethodConfigLogic) GetAuthMethodConfig ¶
func (l *GetAuthMethodConfigLogic) GetAuthMethodConfig(req *dto.GetAuthMethodConfigRequest) (resp *dto.AuthMethodConfig, err error)
type GetAuthMethodListLogic ¶
func (*GetAuthMethodListLogic) GetAuthMethodList ¶
func (l *GetAuthMethodListLogic) GetAuthMethodList() (resp *dto.GetAuthMethodListResponse, err error)
type GetEmailPlatformLogic ¶
func (*GetEmailPlatformLogic) GetEmailPlatform ¶
func (l *GetEmailPlatformLogic) GetEmailPlatform() (resp *dto.AuthPlatformResponse, err error)
type GetSmsPlatformLogic ¶
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 (*Service) GetAuthMethodConfig ¶
func (s *Service) GetAuthMethodConfig(ctx context.Context, req *dto.GetAuthMethodConfigRequest) (*dto.AuthMethodConfig, error)
func (*Service) GetAuthMethodList ¶
func (*Service) GetEmailPlatform ¶
func (*Service) GetSmsPlatform ¶
func (*Service) TestEmailSend ¶
func (*Service) TestSmsSend ¶
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 ¶
func (*TestEmailSendLogic) TestEmailSend ¶
func (l *TestEmailSendLogic) TestEmailSend(req *dto.TestEmailSendRequest) error
type TestSmsSendLogic ¶
func (*TestSmsSendLogic) TestSmsSend ¶
func (l *TestSmsSendLogic) TestSmsSend(req *dto.TestSmsSendRequest) error
type UpdateAuthMethodConfigLogic ¶
func (*UpdateAuthMethodConfigLogic) UpdateAuthMethodConfig ¶
func (l *UpdateAuthMethodConfigLogic) UpdateAuthMethodConfig(req *dto.UpdateAuthMethodConfigRequest) (resp *dto.AuthMethodConfig, err error)
func (*UpdateAuthMethodConfigLogic) UpdateGlobal ¶
func (l *UpdateAuthMethodConfigLogic) UpdateGlobal(method string)
Click to show internal directories.
Click to hide internal directories.