Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookConfig ¶
type WebhookConfig struct {
Daemon string `json:"daemon"`
Receivers map[string]string `json:"receivers"`
Dispatchers map[string]string `json:"dispatchers"`
Transformations map[string]string `json:"transformations"`
Webhooks []WebhookWebhooksConfig `json:"webhooks"`
}
func NewConfigFromReader ¶
func NewConfigFromURI ¶
func NewConfigFromURI(ctx context.Context, uri string) (*WebhookConfig, error)
func (*WebhookConfig) GetDispatcherConfigByName ¶
func (c *WebhookConfig) GetDispatcherConfigByName(name string) (string, error)
func (*WebhookConfig) GetReceiverConfigByName ¶
func (c *WebhookConfig) GetReceiverConfigByName(name string) (string, error)
func (*WebhookConfig) GetTransformationConfigByName ¶
func (c *WebhookConfig) GetTransformationConfigByName(name string) (string, error)
Click to show internal directories.
Click to hide internal directories.