-
Notifications
You must be signed in to change notification settings - Fork 14
Introduction
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:
-
It starts an http server on port 61321 which allows Dredd to pass the transaction information to goodman.
-
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.
-
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.