A service for calling webhooks
go run .
/
GET
- Fetch Server Info
/proxy
GET
- Fetch the Route infoPOST
- Post Payload info to call desired webhooks
{
"url": "http://localhost:3000",
"payload": {
"data_1": "Chat 1",
"data_2": {
"data_1": "Chat 1",
"data_2": "Chat 2"
}
},
"headers": {
"header_1": "first",
"header_2": "second"
}
}
-
Url
- Type -
string
- Reason - It will be a http end point i.e. a single string of URL
- Type -
-
Payload
- Type -
json.RawMessage
- Reason - It is a JSON data and its structure is not necessary to be parsed as it will be directly copied in bytes to Webhook call
- Type -
-
Headers
- Type -
map[string]string
- Reason - To add headers to webhook post request in key and value pair
- Type -
- Currently all info from log will be piped to
logfile.txt
as storage. - It will contain all the status logs created during webook request and in calling it.
Two values will be taken from config file, retry_attempt
and retry_interval
, which will be used for retrying webhook requests in case of failure.