Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Notify ¶ added in v1.5.0
func Notify(result HookResult)
Notify is the global method to notify hook result
Types ¶
type HTTPNotifier ¶
HTTPNotifier is able to send a notification to a HTTP endpoint.
func (*HTTPNotifier) Notify ¶
func (n *HTTPNotifier) Notify(result HookResult) error
Notify send a notification to a HTTP endpoint.
type HookResult ¶ added in v1.15.0
type Notifier ¶
type Notifier interface {
Notify(result HookResult) error
}
Notifier is able to send a notification.
type SMTPNotifier ¶
type SMTPNotifier struct { Host string Username string Password string Conn string From string To string Subject string PrefixFilter string }
SMTPNotifier is able to send notification to a email destination.
func (*SMTPNotifier) Notify ¶
func (n *SMTPNotifier) Notify(result HookResult) error
Notify send a notification to a email destination.
Click to show internal directories.
Click to hide internal directories.