项目作者: pietroalbini

项目描述 :
Simple yet powerful webhooks catcher
高级语言: Rust
项目地址: git://github.com/pietroalbini/fisher.git
创建时间: 2016-06-10T21:28:52Z
项目社区:https://github.com/pietroalbini/fisher

开源协议:GNU General Public License v3.0

下载


Fisher

Build Status

Fisher is a fast, simple webhooks catcher written in Rust. It’s easy to set
up, it features builtin security, and you can monitor its status with a simple
HTTP request. Being a single binary, you can deploy it easily wherever you
want.

Fisher is released under the GNU GPL v3+ license, see LICENSE for more details.
In order to build it, you need to have Rust 1.31.1 or greater installed.

Usage

Fist of all, you need to download Fisher and place the executable
on your server (possibly in a directory in $PATH).

Fisher doesn’t have a configuration file, and you only need to place your hooks
in a directory (make sure they’re executable!):

  1. $ mkdir /srv/hooks
  2. $ cat > /srv/hooks/example-hook.sh << EOF
  3. #!/bin/bash
  4. echo "I'm an hook!"
  5. EOF
  6. $ chmod +x /srv/hooks/example-hook.sh

Then, you start fisher and you’re good to go!

  1. $ fisher /srv/hooks
  2. Total hooks collected: 1
  3. Web API listening on 127.0.0.1:8000

You can now call your hook: the request will be queued by Fisher and the script
will be executed.

  1. $ curl http://127.0.0.1:8000/hook/example-hook

Building Fisher

In order to build fisher, you need a stable Rust compiler and cargo installed.

  1. $ git clone https://github.com/pietroalbini/fisher
  2. $ cd fisher
  3. $ cargo build --release

The compiled binary will be available in target/release/fisher.