Documentation ¶
Index ¶
- type Config
- func (c *Config) ChangeGoogleSignInClientID(clientID GoogleClientID)
- func (c *Config) ChangeSecurityEmail(securityEmail Email)
- func (c *Config) ChangeSystemEmail(systemEmail Email)
- func (c *Config) ChangeTwilioAPI(twilioSID TwilioSID, twilioToken TwilioToken, twilioFromTel TwilioTel)
- func (c *Config) DisableGoogleSignIn()
- func (c *Config) DisableSignUp()
- func (c *Config) DisableSignUpAutoActivate()
- func (c *Config) DisableTOTPRequired()
- func (c *Config) DisableTOTPSMS()
- func (c *Config) EnableGoogleSignIn() error
- func (c *Config) EnableSignUp()
- func (c *Config) EnableSignUpAutoActivate()
- func (c *Config) EnableTOTPRequired()
- func (c *Config) EnableTOTPSMS() error
- func (c *Config) HasSMS() bool
- type Email
- type GoogleClientID
- type ReadWriter
- type Reader
- type Service
- type TwilioSID
- type TwilioTel
- type TwilioToken
- type UpdateConfigGuard
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { aggregate.Root SystemEmail string SecurityEmail string SignUpEnabled bool SignUpAutoActivateEnabled bool TOTPRequired bool TOTPSMSEnabled bool GoogleSignInEnabled bool GoogleSignInClientID string TwilioSID string TwilioToken string TwilioFromTel string SetupRequired bool }
func (*Config) ChangeGoogleSignInClientID ¶
func (c *Config) ChangeGoogleSignInClientID(clientID GoogleClientID)
func (*Config) ChangeSecurityEmail ¶
func (*Config) ChangeSystemEmail ¶
func (*Config) ChangeTwilioAPI ¶
func (c *Config) ChangeTwilioAPI(twilioSID TwilioSID, twilioToken TwilioToken, twilioFromTel TwilioTel)
func (*Config) DisableGoogleSignIn ¶
func (c *Config) DisableGoogleSignIn()
func (*Config) DisableSignUp ¶
func (c *Config) DisableSignUp()
func (*Config) DisableSignUpAutoActivate ¶
func (c *Config) DisableSignUpAutoActivate()
func (*Config) DisableTOTPRequired ¶
func (c *Config) DisableTOTPRequired()
func (*Config) DisableTOTPSMS ¶
func (c *Config) DisableTOTPSMS()
func (*Config) EnableGoogleSignIn ¶
func (*Config) EnableSignUp ¶
func (c *Config) EnableSignUp()
func (*Config) EnableSignUpAutoActivate ¶
func (c *Config) EnableSignUpAutoActivate()
func (*Config) EnableTOTPRequired ¶
func (c *Config) EnableTOTPRequired()
func (*Config) EnableTOTPSMS ¶
type GoogleClientID ¶
type GoogleClientID string
func NewGoogleClientID ¶
func NewGoogleClientID(id string) (GoogleClientID, error)
func (GoogleClientID) String ¶
func (e GoogleClientID) String() string
type ReadWriter ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(broker event.Broker, repo ReadWriter) (*Service, error)
func (*Service) UpdateConfig ¶
func (s *Service) UpdateConfig(ctx context.Context, guard UpdateConfigGuard, systemEmail, securityEmail string, signUpEnabled, signUpAutoActivateEnabled bool, totpRequired, totpSMSEnabled bool, googleSignInEnabled bool, googleSignInClientID string, twilioSID, twilioToken, twilioFromTel string, ) (*Config, error)
type TwilioToken ¶
type TwilioToken string
func NewTwilioToken ¶
func NewTwilioToken(token string) (TwilioToken, error)
func (TwilioToken) String ¶
func (e TwilioToken) String() string
type UpdateConfigGuard ¶
type UpdateConfigGuard interface {
CanUpdateConfig() bool
}
Click to show internal directories.
Click to hide internal directories.