MyEmail

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 6 Imported by: 0

README

MyEmail

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSendEmailEvent

func CreateSendEmailEvent(id string, operation string, targetAddress string, subject string, content map[string]interface{}, async bool) error

func Init

func Init(configPath string) error

Types

type EmailData

type EmailData struct {
	ID            string                 `json:"id"`
	Operation     string                 `json:"operation"`
	TargetAddress string                 `json:"target_address"`
	Subject       string                 `json:"subject"`
	Content       map[string]interface{} `json:"content"`
}

type InitData

type InitData struct {
	KafkaBroker  string `yaml:"kafka-broker"`
	ClientOrigin string `yaml:"client-origin"`
}
var Data *InitData

Jump to

Keyboard shortcuts

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