integration

package
v0.0.0-...-0f1690e Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameOfAccountsCollection = "accounts"
	NameOfSessionsCollection = "sessions"
)

Variables

This section is empty.

Functions

func NewMongoConnection

func NewMongoConnection(ctx context.Context, dbConfig config.DatabaseConfig) (*mongo.Client, error)

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)

Jump to

Keyboard shortcuts

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