Documentation
¶
Index ¶
- Constants
- type Configuration
- type Metadata
- type Webhook
- func (w *Webhook) Actions() []core.Action
- func (w *Webhook) Cleanup(ctx core.TriggerContext) error
- func (w *Webhook) Color() string
- func (w *Webhook) Configuration() []configuration.Field
- func (w *Webhook) Description() string
- func (w *Webhook) Documentation() string
- func (w *Webhook) ExampleData() map[string]any
- func (w *Webhook) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (w *Webhook) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (w *Webhook) Icon() string
- func (w *Webhook) Label() string
- func (w *Webhook) Name() string
- func (w *Webhook) Setup(ctx core.TriggerContext) error
Constants ¶
View Source
const ( MaxEventSize = 64 * 1024 DefaultHeaderTokenName = "X-Webhook-Token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Authentication string `json:"authentication"`
HeaderName string `json:"headerName" mapstructure:"headerName"`
}
func (Configuration) HeaderTokenName ¶ added in v0.9.0
func (c Configuration) HeaderTokenName() string
type Webhook ¶
type Webhook struct{}
func (*Webhook) Configuration ¶
func (w *Webhook) Configuration() []configuration.Field
func (*Webhook) Description ¶
func (*Webhook) Documentation ¶ added in v0.1.6
func (*Webhook) ExampleData ¶ added in v0.0.45
func (*Webhook) HandleAction ¶
func (*Webhook) HandleWebhook ¶
func (w *Webhook) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
Click to show internal directories.
Click to hide internal directories.