Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainReporter ¶
type ChainReporter struct {
// contains filtered or unexported fields
}
func (*ChainReporter) Add ¶
func (c *ChainReporter) Add(reporter Reporter)
func (*ChainReporter) Send ¶
func (c *ChainReporter) Send(stack model.ViolationStack) error
type MessageFormatter ¶
type MessageFormatter struct {
// contains filtered or unexported fields
}
func (MessageFormatter) Format ¶
func (f MessageFormatter) Format(stack model.ViolationStack) []byte
type Reporter ¶
type Reporter interface {
Send(stack model.ViolationStack) error
}
type SmtpReporter ¶
type SmtpReporter struct {
// contains filtered or unexported fields
}
func NewSmtpReporter ¶
func (SmtpReporter) Send ¶
func (s SmtpReporter) Send(stack model.ViolationStack) error
type WebhookReporter ¶
type WebhookReporter struct {
// contains filtered or unexported fields
}
func NewWebhookReporter ¶
func NewWebhookReporter(url string) WebhookReporter
func (WebhookReporter) Send ¶
func (w WebhookReporter) Send(s model.ViolationStack) error
Click to show internal directories.
Click to hide internal directories.