subscriber

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(ctx context.Context, msg *emailerPB.Message) error

Handler is a function to send emails

Types

type EmailSubscriber

type EmailSubscriber struct {
	// contains filtered or unexported fields
}

EmailSubscriber is Subscriber

func NewEmailSubscriber

func NewEmailSubscriber(emailService service.EmailService) *EmailSubscriber

NewEmailSubscriber returns an instance of `EmailSubscriber`.

func (*EmailSubscriber) Handle

func (s *EmailSubscriber) Handle(ctx context.Context, msg *emailerPB.Message) error

Handle is a method to send emails, Method can be of any name

Jump to

Keyboard shortcuts

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