package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

Deliver creates the [http.Request] (depending on the webhook type), sends it and records the status and response.
GetDiscordHook returns discord metadata.
GetMatrixHook returns Matrix metadata.
GetPackagistHook returns packagist metadata.
GetSlackHook returns slack metadata.
GetTelegramHook returns telegram metadata.
Init starts the hooks delivery thread.
IsValidHookTaskType returns true if a webhook registered.
IsValidSlackChannel validates a channel name conforms to what slack expects: https://api.slack.com/methods/conversations.rename#naming Conversation names can only contain lowercase letters, numbers, hyphens, and underscores, and must be 80 characters or less.
MatrixLinkToRef Matrix-formatter link to a repo ref.
NewNotifier create a new webhookNotifier notifier.
PrepareWebhook creates a hook task and enqueues it for processing.
PrepareWebhooks adds new webhooks to task queue for given payload.
ReplayHookTask replays a webhook task.
SlackLinkFormatter creates a link compatible with slack.
SlackLinkToRef slack-formatter link to a repo ref.
SlackShortTextFormatter replaces &, <, > with HTML characters.
SlackTextFormatter replaces &, <, > with HTML characters see: https://api.slack.com/docs/formatting.
ToHook convert models.Webhook to api.Hook This function is not part of the convert package to prevent an import cycle.

# Structs

EventSource represents the source of a webhook action.
MatrixMeta contains the Matrix metadata.
MatrixPayload contains payload for a Matrix room.
SlackAttachment contains the slack message.
SlackMeta contains the slack metadata.
SlackPayload contains the information about the slack channel.

# Type aliases