Refactor adapters to have their own namespaces
Closed this issue · 1 comments
dryman commented
We already have two adapters: "Log4j" and "Graphite", now we are going to add "SMTP" adapter. It's better to separate them into individual namespaces.
dryman commented
The source structure becomes like this. bin.clj
is the main entry, core.clj
is the fetch function and callback definition, other clojure files are adapters that direct the output.
src
src/grunf
src/grunf/adapter
src/grunf/adapter/graphite.clj
src/grunf/adapter/log4j.clj
src/grunf/adapter/postal.clj
src/grunf/bin.clj
src/grunf/core.clj