examples

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMinioClient

func CreateMinioClient() *minio.Client

CreateMinioClient initializes and returns a Minio client.

func GenerateBatchInput

func GenerateBatchInput(numRecords int, emailTemplate EmailTemplate) []jobs.BatchInput_t

GenerateBatchInput creates a slice of BatchInput_t for batch processing. numRecords specifies the number of records to generate. emailTemplate is the base template for generating the email records.

func InitializeDatabase added in v0.13.0

func InitializeDatabase(connString string) (*pgx.Conn, error)

InitializeDatabase connects to the database and runs migrations.

Types

type EmailInput

type EmailInput struct {
	RecipientEmail string `json:"recipientEmail"`
	Subject        string `json:"subject"`
	Body           string `json:"body"`
}

type EmailTemplate

type EmailTemplate struct {
	RecipientEmail string
	Subject        string
	Body           string
}

EmailTemplate defines the structure for the base email template.

Jump to

Keyboard shortcuts

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