Skip to content
Dom Del Nano edited this page Jun 5, 2016 · 3 revisions

The goodman binary makes it easy to hook into Dredd's events.

###Goodman Behind the Scenes

goodman is a command line program that interfaces with Dredd. When it is run the follow occurs:

  1. It starts an http server on port 61321 which allows Dredd to pass the transaction information to goodman.

  2. For each hookfiles binary passed via the --hookfiles flag, it starts an RPC server for each of the corresponding binaries. Goodman will start the first RPC server on port 61322 and assign each additional server a port in numerical order. For example, if goodman was provided with 3 hookfiles binaries it would assign the ports 61322, 61323, and 61324.

  3. Dredd sends events to the goodman server which are parsed and execute a RPC call to each of the hook servers which runs any defined hooks for the event.

Clone this wiki locally