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

Method WebhookLogs

internal/grpcsrv/handlers/admin.go:246–255  ·  view source on GitHub ↗

WebhookLogs delegates to service.WebhookLogs and projects the paginated result. webhook_id is optional. Requires super-admin auth.

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

Source from the content-addressed store, hash-verified

244// WebhookLogs delegates to service.WebhookLogs and projects the paginated
245// result. webhook_id is optional. Requires super-admin auth.
246func (h *AdminHandler) WebhookLogs(ctx context.Context, req *authorizerv1.WebhookLogsRequest) (*authorizerv1.WebhookLogsResponse, error) {
247 res, _, err := h.Service.WebhookLogs(ctx, transport.MetaFromGRPC(ctx), &model.ListWebhookLogRequest{
248 Pagination: modelPaginationRequest(req.GetPagination()),
249 WebhookID: req.WebhookId,
250 })
251 if err != nil {
252 return nil, err
253 }
254 return projectWebhookLogs(res), nil
255}
256
257// TestEndpoint delegates to service.TestEndpoint and projects the result. Makes
258// an outbound HTTP call to the supplied endpoint. Requires super-admin auth.

Callers

nothing calls this directly

Calls 5

MetaFromGRPCFunction · 0.92
modelPaginationRequestFunction · 0.85
projectWebhookLogsFunction · 0.85
WebhookLogsMethod · 0.65
GetPaginationMethod · 0.45

Tested by

no test coverage detected