Documentation ¶
Index ¶
- Constants
- func NewMongoConnection(ctx context.Context, dbConfig config.DatabaseConfig) (*mongo.Client, error)
- func NewRedisConnection(ctx context.Context, inMemoryStorageConfig config.InMemoryStorageConfig) (*redis.Client, error)
- type EmailManager
- func (em *EmailManager) SendPasswordResetNotification(emailOfReceiver string)
- func (em *EmailManager) SendPasswordUpdateNotification(emailOfReceiver string, feelLikeGetHacked bool)
- func (em *EmailManager) SendVerifCodeForPasswordReset(emailOfReceiver, code string)
- func (em *EmailManager) SendVerifCodeForPasswordUpdate(emailOfReceiver, code string)
- func (em *EmailManager) SendVerifCodeForSignUp(emailOfReceiver, nickname, code string)
- func (em *EmailManager) SendVerifCodeToCleanSessions(emailOfReceiver, code string)
Constants ¶
View Source
const ( NameOfAccountsCollection = "accounts" NameOfSessionsCollection = "sessions" )
Variables ¶
This section is empty.
Functions ¶
func NewMongoConnection ¶
func NewRedisConnection ¶
func NewRedisConnection(ctx context.Context, inMemoryStorageConfig config.InMemoryStorageConfig) (*redis.Client, error)
Types ¶
type EmailManager ¶
type EmailManager struct {
// contains filtered or unexported fields
}
func NewEmailManager ¶
func NewEmailManager(globalConfig config.Config) *EmailManager
func (*EmailManager) SendPasswordResetNotification ¶
func (em *EmailManager) SendPasswordResetNotification(emailOfReceiver string)
func (*EmailManager) SendPasswordUpdateNotification ¶
func (em *EmailManager) SendPasswordUpdateNotification(emailOfReceiver string, feelLikeGetHacked bool)
func (*EmailManager) SendVerifCodeForPasswordReset ¶
func (em *EmailManager) SendVerifCodeForPasswordReset(emailOfReceiver, code string)
func (*EmailManager) SendVerifCodeForPasswordUpdate ¶
func (em *EmailManager) SendVerifCodeForPasswordUpdate(emailOfReceiver, code string)
func (*EmailManager) SendVerifCodeForSignUp ¶
func (em *EmailManager) SendVerifCodeForSignUp(emailOfReceiver, nickname, code string)
func (*EmailManager) SendVerifCodeToCleanSessions ¶
func (em *EmailManager) SendVerifCodeToCleanSessions(emailOfReceiver, code string)
Click to show internal directories.
Click to hide internal directories.