An open API service indexing awesome lists of open source software.

https://github.com/floraison/pollen

a set of flor hooks that emit over the http
https://github.com/floraison/pollen

flor hooks

Last synced: 8 months ago
JSON representation

a set of flor hooks that emit over the http

Awesome Lists containing this project

README

          

# pollen
Pollen provides a way for an external application to observe Flor's
behaviors using an HTTP interface. It's also a great showcase for Flor's
hooking facility (see [hooks.conf.sample](hooks.conf.sample)).

By default it will report the following events but those can be extended:

1. flow creation/launch
2. task return (aka reply and proceed)
3. flow termination
4. cancellation
5. errors

## Instructions
1. Clone the repository within Flor/Flack's `/lib/hooks` directory.
2. Copy the content of `hooks.json.sample` on
`/lib/hooks/hooks.json` to inform Flor about the new hooks.
This is where you can extend the events you want to monitor.
3. By default Pollen will contact your hook handler at
`http://localhost:3000/hookhandler/`. This can be controlled through
Flor/Flack's configuration (`/etc/conf.json`) as follow:
```
pollen_prot: "http"
pollen_host: "localhost"
pollen_port: "3000"
pollen_path: "hookhandler"
```
4. Enjoy!

## License
MIT, see [LICENSE.md](LICENSE.md)