api

package
v0.0.0-...-8293e18 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewJob)

Functions

This section is empty.

Types

type Email

type Email struct {
	Receivers  []string          `json:"receivers"`
	TemplateId string            `json:"template_id"`
	Param      map[string]string `json:"param"`
}

Email from kafka msg.value

type Job

type Job interface {
	SendEmail(ctx context.Context, e *Email) error
}

func NewJob

func NewJob(uc *service.MessageUseCase, log *zap.SugaredLogger) Job

Jump to

Keyboard shortcuts

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