utils

package
v0.0.0-...-dd62990 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMessage

func BuildMessage(mail Mail) string

func GetEmailTemplate

func GetEmailTemplate(name string, data map[string]string) (string, error)

func NewKafkaConsumer

func NewKafkaConsumer(brokers []string, topic string, groupId string) *kafka.Reader

Types

type EmailAddress

type EmailAddress struct {
	Address string `json:"address"`
	Name    string `json:"name"`
}

type Mail

type Mail struct {
	From    EmailAddress `json:"from"`
	To      []string     `json:"to"`
	Subject string       `json:"subject"`
	Body    string       `json:"body"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳