Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailTemplateData ¶
type MockSender ¶ added in v0.9.0
type MockSender struct { Err error // contains filtered or unexported fields }
func (*MockSender) CapturedMessage ¶ added in v0.9.0
func (s *MockSender) CapturedMessage() *Message
func (*MockSender) Critical ¶ added in v0.9.0
func (s *MockSender) Critical(msg *Message) error
func (*MockSender) CriticalWasCalled ¶ added in v0.9.0
func (s *MockSender) CriticalWasCalled() bool
func (*MockSender) Info ¶ added in v0.9.0
func (s *MockSender) Info(msg *Message) error
func (*MockSender) InfoWasCalled ¶ added in v0.9.0
func (s *MockSender) InfoWasCalled() bool
type MultiSender ¶
type MultiSender struct {
// contains filtered or unexported fields
}
MultiSender is a Sender which will attempt to send each Message to every included Sender and returns the first error encountered.
func NewMultiSender ¶
func NewMultiSender(logger log.Logger, cfg *config.PipelineNotifications) (*MultiSender, error)
func (*MultiSender) Critical ¶
func (ms *MultiSender) Critical(msg *Message) error
func (*MultiSender) Info ¶
func (ms *MultiSender) Info(msg *Message) error
Click to show internal directories.
Click to hide internal directories.