Documentation
¶
Overview ¶
Package webhook implements inbound webhook routing for serve channels. External services (GitHub, CI, etc.) POST events to /webhook/<path>, which are verified and dispatched to agent tasks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
HandleWebhookEvent(ctx context.Context, route RouteConfig, payload []byte) error
}
Handler processes incoming webhook events.
type RouteConfig ¶
type RouteConfig struct {
Path string `json:"path"`
Events []string `json:"events"`
Skill string `json:"skill"`
Delivery string `json:"delivery"` // "wechat", "feishu", or "" (no delivery)
DeliveryTarget string `json:"delivery_target,omitempty"` // platform-specific recipient id
}
RouteConfig defines a webhook route.
Click to show internal directories.
Click to hide internal directories.