Documentation
¶
Index ¶
- type EmailNotifier
- func (e *EmailNotifier) ProposalAccepted(messageAttributes MessageAttributes, recipients []string) error
- func (e *EmailNotifier) ProposalRejected(messageAttributes MessageAttributes, recipients []string) error
- func (e *EmailNotifier) ProposalSubmitted(messageAttributes MessageAttributes, recipients []string) error
- func (e *EmailNotifier) ProposalWithdrawn(messageAttributes MessageAttributes, recipients []string) error
- type MessageAttributes
- type Notification
- type Notifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailNotifier ¶
type EmailNotifier struct {
// contains filtered or unexported fields
}
func NewEmailNotifier ¶
func NewEmailNotifier(ctx context.Context) *EmailNotifier
func (*EmailNotifier) ProposalAccepted ¶
func (e *EmailNotifier) ProposalAccepted(messageAttributes MessageAttributes, recipients []string) error
func (*EmailNotifier) ProposalRejected ¶
func (e *EmailNotifier) ProposalRejected(messageAttributes MessageAttributes, recipients []string) error
func (*EmailNotifier) ProposalSubmitted ¶
func (e *EmailNotifier) ProposalSubmitted(messageAttributes MessageAttributes, recipients []string) error
func (*EmailNotifier) ProposalWithdrawn ¶
func (e *EmailNotifier) ProposalWithdrawn(messageAttributes MessageAttributes, recipients []string) error
type MessageAttributes ¶
func (MessageAttributes) String ¶
func (ma MessageAttributes) String() string
type Notification ¶
type Notification int64
const ( Submitted Notification = iota Withdrawn Accepted Rejected )
type Notifier ¶
type Notifier interface { ProposalSubmitted(messageAttributes MessageAttributes, recipients []string) error ProposalWithdrawn(messageAttributes MessageAttributes, recipients []string) error ProposalAccepted(messageAttributes MessageAttributes, recipients []string) error ProposalRejected(messageAttributes MessageAttributes, recipients []string) error }
Click to show internal directories.
Click to hide internal directories.