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)
| 43 | // Returns: |
| 44 | // - error: An error if the webhook execution fails. |
| 45 | func (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. |
nothing calls this directly
no test coverage detected