nuzzle.generator is a grab bag of functions that don't have much in common except that they generate data.
The transform-config function is misplaced. As part of the config loading process, it should go in nuzzle.config. create-tag-index and create-group-index are only used by transform-config and should also be moved to nuzzle.config as well. generate-page-list is only used by the generate-*-index functions and can be incorporated into them by refactoring the functions into reduce-kv operations. The generate-*-index functions themselves can be moved to nuzzle.publish and nuzzle.ring respectively.
nuzzle.generator
is a grab bag of functions that don't have much in common except that they generate data.The
transform-config
function is misplaced. As part of the config loading process, it should go innuzzle.config
.create-tag-index
andcreate-group-index
are only used bytransform-config
and should also be moved tonuzzle.config
as well.generate-page-list
is only used by thegenerate-*-index
functions and can be incorporated into them by refactoring the functions intoreduce-kv
operations. Thegenerate-*-index
functions themselves can be moved tonuzzle.publish
andnuzzle.ring
respectively.