Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookConfig ¶
type WebhookConfig struct {
Daemon WebhookDaemonConfig `json:"daemon"`
Receivers map[string]WebhookReceiverConfig `json:"receivers"`
Dispatchers map[string]WebhookDispatcherConfig `json:"dispatchers"`
Transformations map[string]WebhookTransformationConfig `json:"transformations"`
Webhooks []WebhookWebhooksConfig `json:"webhooks"`
}
func NewConfigFromFile ¶
func NewConfigFromFile(path string) (*WebhookConfig, error)
func (*WebhookConfig) GetDispatcherConfigByName ¶
func (c *WebhookConfig) GetDispatcherConfigByName(name string) (*WebhookDispatcherConfig, error)
func (*WebhookConfig) GetReceiverConfigByName ¶
func (c *WebhookConfig) GetReceiverConfigByName(name string) (*WebhookReceiverConfig, error)
func (*WebhookConfig) GetTransformationConfigByName ¶
func (c *WebhookConfig) GetTransformationConfigByName(name string) (*WebhookTransformationConfig, error)
type WebhookDaemonConfig ¶
type WebhookDispatcherConfig ¶
type WebhookReceiverConfig ¶
type WebhookTransformationConfig ¶
type WebhookTransformationConfig struct {
Name string `json:"name"`
Language string `json:"language,omitempty"`
Clucking bool `json:"clucking,omitempty"`
ExcludeAdditions bool `json:"exclude_additions,omitempty"`
ExcludeModifications bool `json:"exclude_modifications,omitempty"`
ExcludeDeletions bool `json:"exclude_deletions,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.