httphandlers

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhooksAdminHandler

type WebhooksAdminHandler struct {
	// contains filtered or unexported fields
}

WebhooksAdminHandler handles webhook queue management endpoints.

func NewWebhooksAdminHandler

func NewWebhooksAdminHandler(store storage.Store) *WebhooksAdminHandler

NewWebhooksAdminHandler creates a new webhooks admin handler.

func (*WebhooksAdminHandler) DeleteWebhook

func (h *WebhooksAdminHandler) DeleteWebhook(w http.ResponseWriter, r *http.Request)

DeleteWebhook removes a webhook from the queue. DELETE /admin/webhooks/:id

func (*WebhooksAdminHandler) GetWebhook

func (h *WebhooksAdminHandler) GetWebhook(w http.ResponseWriter, r *http.Request)

GetWebhook retrieves a specific webhook by ID. GET /admin/webhooks/:id

func (*WebhooksAdminHandler) ListWebhooks

func (h *WebhooksAdminHandler) ListWebhooks(w http.ResponseWriter, r *http.Request)

ListWebhooks returns a list of webhooks with optional status filter. GET /admin/webhooks?status=pending&limit=100

func (*WebhooksAdminHandler) RetryWebhook

func (h *WebhooksAdminHandler) RetryWebhook(w http.ResponseWriter, r *http.Request)

RetryWebhook resets a webhook to pending state for manual retry. POST /admin/webhooks/:id/retry

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL