gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] 03/03: webhook sketch


From: gnunet
Subject: [taler-merchant] 03/03: webhook sketch
Date: Mon, 23 Jan 2023 14:22:50 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

commit 03ce25438c251820ff556c66f11b22659f7a896f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jan 23 14:22:43 2023 +0100

    webhook sketch
---
 src/backend/taler-merchant-webhook.c | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-webhook.c 
b/src/backend/taler-merchant-webhook.c
index f9aea28b..7df1ad8e 100644
--- a/src/backend/taler-merchant-webhook.c
+++ b/src/backend/taler-merchant-webhook.c
@@ -117,8 +117,28 @@ handle_webhook_response (void *cls)
 }
 
 
-void
-cb ()
+/**
+ * Typically called by `lookup_pending_webhooks`.
+ *
+ * @param cls a `json_t *` JSON array to build
+ * @param webhook_serial reference to the configured webhook template.
+ * @param next_attempt is the time we should make the next request to the 
webhook.
+ * @param retries how often have we tried this request to the webhook.
+ * @param url to make request to
+ * @param http_method use for the webhook
+ * @param header of the webhook
+ * @param body of the webhook
+ */
+static void
+cb (void *cls,
+    uint64_t webhook_serial,
+    struct GNUNET_TIME_Absolute
+    next_attempt,
+    uint32_t retries,
+    const char *url,
+    const char *http_method,
+    const char *header,
+    const char *body)
 {
   CURL *eh;
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]