https://github.com/bst27/fs-webhook
Send webhooks for filesystem changes.
https://github.com/bst27/fs-webhook
100daysofcode filesystem-monitoring filesystemwatcher go golang webhook webhooks
Last synced: about 1 year ago
JSON representation
Send webhooks for filesystem changes.
- Host: GitHub
- URL: https://github.com/bst27/fs-webhook
- Owner: bst27
- License: mit
- Created: 2020-08-13T08:03:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-13T10:49:47.000Z (almost 6 years ago)
- Last Synced: 2025-05-12T16:13:28.330Z (about 1 year ago)
- Topics: 100daysofcode, filesystem-monitoring, filesystemwatcher, go, golang, webhook, webhooks
- Language: Go
- Homepage:
- Size: 827 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# About
This app sends webhooks for filesystem changes. You can define an URL to receive webhooks and a filesystem path
to be monitored for changes.
# Usage
```
./fs-webhook -url "" -path ""
```
# Example
Execute the application with the following config:
```
./fs-webhook -url "http://localhost/webhook-receiver" -path "/tmp/hello-world"
```
When you make a change to `hello-world` you will receive the following http post request at your defined url:
```
POST /webhook-receiver HTTP/1.1
Host: localhost
Content-Length: 56
Content-Type: application/json
{
"action": "write",
"path": "/tmp/hello-world"
}
```
# Build
To build executables for multiple platforms you can use the build script at `scripts/build.sh`.