MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / ExecuteHook

Method ExecuteHook

internal/hooks/client.go:45–47  ·  view source on GitHub ↗

ExecuteHook is a public wrapper for processing a hook task. It executes the webhook by sending an HTTP POST request to the configured URL. Parameters: - ctx: The context for the operation. - hook: The hook configuration containing URL and other settings. - payload: The payload to send in the webhoo

(ctx context.Context, hook *Hook, payload HookPayload)

Source from the content-addressed store, hash-verified

43// Returns:
44// - error: An error if the webhook execution fails.
45func (m *redisHookManager) ExecuteHook(ctx context.Context, hook *Hook, payload HookPayload) error {
46 return m.executeHook(ctx, hook, payload)
47}
48
49// executeHook performs the actual HTTP request for the webhook.
50// It handles marshalling the payload, creating the request, and processing the response.

Callers

nothing calls this directly

Calls 1

executeHookMethod · 0.95

Tested by

no test coverage detected