MCPcopy Create free account
hub / github.com/authorizerdev/authorizer / DeleteWebhook

Method DeleteWebhook

internal/grpcsrv/handlers/admin.go:212–220  ·  view source on GitHub ↗

DeleteWebhook delegates to service.DeleteWebhook. Requires super-admin auth.

(ctx context.Context, req *authorizerv1.DeleteWebhookRequest)

Source from the content-addressed store, hash-verified

210
211// DeleteWebhook delegates to service.DeleteWebhook. Requires super-admin auth.
212func (h *AdminHandler) DeleteWebhook(ctx context.Context, req *authorizerv1.DeleteWebhookRequest) (*authorizerv1.DeleteWebhookResponse, error) {
213 res, _, err := h.Service.DeleteWebhook(ctx, transport.MetaFromGRPC(ctx), &model.WebhookRequest{
214 ID: req.GetId(),
215 })
216 if err != nil {
217 return nil, err
218 }
219 return &authorizerv1.DeleteWebhookResponse{Message: res.Message}, nil
220}
221
222// GetWebhook delegates to service.Webhook and projects the result. Requires
223// super-admin auth.

Callers

nothing calls this directly

Calls 3

MetaFromGRPCFunction · 0.92
DeleteWebhookMethod · 0.65
GetIdMethod · 0.45

Tested by

no test coverage detected