notification

package
v0.0.0-...-5216698 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

type MessageAttributes map[string]string

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
}

Jump to

Keyboard shortcuts

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