service

package
v0.0.0-...-aace954 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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

type TestEmailMessage struct {
	To      []string
	Subject string
	Body    string
}

Jump to

Keyboard shortcuts

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