testhelpers

package
v0.0.0-...-4e281dc Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUUIDDateValues

func GetUUIDDateValues(log *zap.Logger) ([]byte, string, *timestamp.Timestamp, *timestamp.Timestamp, string, string, string, string, error)

GetUUIDDateValues -- data for tests

func LoadSQL

func LoadSQL(log *zap.Logger, dbService *common.DBService) error

LoadSQL -- drop db, create db, use db, load data

Types

type MailerServiceTest

type MailerServiceTest struct {
}

MailerServiceTest Pointer to mailer

func CreateMailerServiceTest

func CreateMailerServiceTest(log *zap.Logger) (*MailerServiceTest, error)

CreateMailerServiceTest -- init mailer

func NewMailerServiceTest

func NewMailerServiceTest() (*MailerServiceTest, error)

NewMailerServiceTest get connection to mailer and create a MailerService struct

func (*MailerServiceTest) SendChangeMail

func (mailerService *MailerServiceTest) SendChangeMail(hostURL string, userEmail string, newEmail string, resetToken string, requestID string) error

SendChangeMail - used for sending email

func (*MailerServiceTest) SendConfirmationMail

func (mailerService *MailerServiceTest) SendConfirmationMail(hostURL string, userEmail string, emailConfirmationToken string, requestID string) error

SendConfirmationMail - used for sending email

func (*MailerServiceTest) SendMail

func (mailerService *MailerServiceTest) SendMail(msg common.Email) error

SendMail - used for sending email

func (*MailerServiceTest) SendResetPasswordMail

func (mailerService *MailerServiceTest) SendResetPasswordMail(hostURL string, userEmail string, resetToken string, requestID string) error

SendResetPasswordMail - used for sending email

Jump to

Keyboard shortcuts

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