snare-0.4.0 is not a library.
Visit the last successful build:
snare-3.5.1
snare is a GitHub webhooks daemon. Architecturally it is split in two:
- The
httpserverlistens for incoming hooks, checks that they're valid, and adds them to aQueue. - The
jobrunnerpops elements from theQueueand runs them in parallel. These two components run as two different threads: thehttpserverwrites a solitary byte to an "event pipe" to wake up thejobrunnerwhen the queue has new elements. We also wake up thejobrunneron SIGHUP and SIGCHLD.