Documentation
¶
Index ¶
- Constants
- func NewAppService(appRepo repo.AppRepo, auditLogRepo repo.AuditLogRepo) services.AppService
- func NewEmailService(serviceType string, options interface{}) (coreServices.EmailService, errors.RichError)
- func NewLoginService(options LoginServiceOptions) coreservices.LoginService
- func NewStackEmailService() *stackEmailService
- func NewTokenService(tokenRepo repo.TokenRepo) services.TokenService
- func NewUserService(userRepo repo.UserRepo, contactRepo repo.ContactRepo, ...) services.UserService
- type LoginServiceOptions
- type TestEmailMessage
Constants ¶
View Source
const ( MockEmailService = "mock" NoOpEmailService = "noop" StackEmailService = "stack" SMTPEmailService = "smtp" )
Variables ¶
This section is empty.
Functions ¶
func NewAppService ¶
func NewAppService(appRepo repo.AppRepo, auditLogRepo repo.AuditLogRepo) services.AppService
func NewEmailService ¶
func NewEmailService(serviceType string, options interface{}) (coreServices.EmailService, errors.RichError)
func NewLoginService ¶
func NewLoginService(options LoginServiceOptions) coreservices.LoginService
func NewStackEmailService ¶
func NewStackEmailService() *stackEmailService
func NewTokenService ¶
func NewTokenService(tokenRepo repo.TokenRepo) services.TokenService
func NewUserService ¶
func NewUserService(userRepo repo.UserRepo, contactRepo repo.ContactRepo, tokenService services.TokenService, emailService services.EmailService) services.UserService
Types ¶
type LoginServiceOptions ¶
type LoginServiceOptions struct { AuditLogRepo repo.AuditLogRepo ContactRepo repo.ContactRepo EmailService coreservices.EmailService UserRepo repo.UserRepo TokenService coreservices.TokenService MaxFailedLoginAttempts int AccountLockoutDuration time.Duration }
type TestEmailMessage ¶
Click to show internal directories.
Click to hide internal directories.