# Functions
CleanupHookTaskTable deletes rows from hook_task as needed.
CopyDefaultWebhooksToRepo creates copies of the default webhooks in a new repo.
CreateHookTask creates a new hook task, it handles conversion from Payload to PayloadContent.
CreateWebhook creates a new web hook.
CreateWebhooks creates multiple web hooks.
DeleteDefaultSystemWebhook deletes an admin-configured default or system webhook (where Org and Repo ID both 0).
DeleteWebhookByID uses argument bean as query condition, ID must be specified and do not assign unnecessary fields.
DeleteWebhookByOwnerID deletes webhook of a user or organization by given ID.
DeleteWebhookByRepoID deletes webhook of repository by given ID.
FindUndeliveredHookTaskIDs will find the next 100 undelivered hook tasks with ID greater than the provided lowerID.
GetDefaultWebhooks returns all admin-default webhooks.
GetSystemOrDefaultWebhook returns admin system or default webhook by given ID.
GetSystemWebhooks returns all admin system webhooks.
GetWebhookByID returns webhook of repository by given ID.
GetWebhookByOwnerID returns webhook of a user or organization by given ID.
GetWebhookByRepoID returns webhook of repository by given ID.
HookTasks returns a list of hook tasks by given conditions.
IsErrHookTaskNotExist checks if an error is a ErrHookTaskNotExist.
IsErrWebhookNotExist checks if an error is a ErrWebhookNotExist.
IsValidHookContentType returns true if given name is a valid hook content type.
ReplayHookTask copies a hook task to get re-delivered.
ToHookContentType returns HookContentType by given name.
ToHookTaskCleanupType returns HookTaskCleanupType by given name.
UpdateHookTask updates information of hook task.
UpdateWebhook updates information of webhook.
UpdateWebhookLastStatus updates last status of webhook.
# Constants
ContentTypeForm is an url-encoded form payload for web hook.
ContentTypeJSON is a JSON payload for web hooks.
OlderThan hook_task rows will be cleaned up by the age of the row.
PerWebhook hook_task rows will be cleaned up by leaving the most recent deliveries for each webhook.
# Structs
ErrHookTaskNotExist represents a "HookTaskNotExist" kind of error.
ErrWebhookNotExist represents a "WebhookNotExist" kind of error.
HookRequest represents hook task request information.
HookResponse represents hook task response information.
HookTask represents a hook task.
ListWebhookOptions are options to filter webhooks on ListWebhooksByOpts.
Webhook represents a web hook object.
# Type aliases
HookContentType is the content type of a web hook.
HookTaskCleanupType is the type of cleanup to perform on hook_task.