Documentation ¶ Index ¶ type Core func NewCore(adminAddress string, dialer *gomail.Dialer) *Core func (c *Core) Send(ctx context.Context, email Email) error type Email func LikeEventToEmail(like broker.LikeEvent) Email type EmailSender Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Core ¶ type Core struct { // contains filtered or unexported fields } func NewCore ¶ func NewCore(adminAddress string, dialer *gomail.Dialer) *Core func (*Core) Send ¶ func (c *Core) Send(ctx context.Context, email Email) error type Email ¶ type Email struct { Recipient string Subject string Body string } func LikeEventToEmail ¶ func LikeEventToEmail(like broker.LikeEvent) Email type EmailSender ¶ type EmailSender interface { Send(ctx context.Context, email Email) error } Source Files ¶ View all Source files emai.gomodel.go Click to show internal directories. Click to hide internal directories.