Documentation
¶
Overview ¶
Package webhook implements a Pilot notification plugin that sends events as JSON HTTP POST requests to a user-configured URL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
URL string `json:"url"`
Method string `json:"method,omitempty"` // default: POST
Headers map[string]string `json:"headers,omitempty"` // extra request headers
}
Config holds the user-supplied settings for a webhook notifier.
Click to show internal directories.
Click to hide internal directories.