sender

package
v0.0.0-...-d33063b Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageSenderConfig

type MessageSenderConfig struct {
	LoginTokenTTL                time.Duration     `json:"login_token_ttl" yaml:"login_token_ttl"`
	GlobalEmailTemplateConstants map[string]string `json:"global_email_template_constants" yaml:"global_email_template_constants"`
}

type StudyMessageSender

type StudyMessageSender struct {
	// contains filtered or unexported fields
}

StudyMessageSender implements studyengine.StudyMessageSender using the platform services.

func NewStudyMessageSender

func NewStudyMessageSender(
	studyDB *studydb.StudyDBService,
	participantUserDB *participantuser.ParticipantUserDBService,
	messagingDB *messagingDB.MessagingDBService,
	globalInfosDB *globalinfosDB.GlobalInfosDBService,
	messageSenderConfig MessageSenderConfig,
) *StudyMessageSender

func (*StudyMessageSender) SendInstantStudyEmail

func (s *StudyMessageSender) SendInstantStudyEmail(
	instanceID string,
	studyKey string,
	confidentialPID string,
	messageType string,
	extraPayload map[string]string,
	opts studyengine.SendOptions,
) error

SendInstantStudyEmail prepares and sends an email immediately using a study template.

Jump to

Keyboard shortcuts

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