Documentation
¶
Overview ¶
Package hooks defines the system webhook handlers.
Index ¶
Constants ¶
View Source
const KindPostCall = "PostCall"
KindPostCall is the kind for post-call webhooks.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
// Handle processes the webhook request.
Handle(w http.ResponseWriter, r *http.Request)
}
Handler handles a webhook request.
type MarkdownHandler ¶
type MarkdownHandler struct{}
MarkdownHandler converts HTML to Markdown.
func (*MarkdownHandler) Handle ¶
func (h *MarkdownHandler) Handle(w http.ResponseWriter, r *http.Request)
Handle handles markdown conversion.
type PaginateHandler ¶
type PaginateHandler struct{}
PaginateHandler paginates strings.
func (*PaginateHandler) Handle ¶
func (h *PaginateHandler) Handle(w http.ResponseWriter, r *http.Request)
Handle handles pagination.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry manages system webhooks.
type TruncateHandler ¶
type TruncateHandler struct{}
TruncateHandler truncates long strings.
func (*TruncateHandler) Handle ¶
func (h *TruncateHandler) Handle(w http.ResponseWriter, r *http.Request)
Handle handles text truncation.
Click to show internal directories.
Click to hide internal directories.