revid/config: create Parameter interface and write implementations for each config parameter

Issue #262 resolved
Saxon Milton created an issue

In order to simplify the update function (as well as validation and generation of a map describing config fields for vidgrind/netreceiver), it is proposed that we use a Parameter interface providing a Type method (providing type information), and a Set method (providing Setting code and validation). This will mean that we can simply iterate through the config struct using reflect and call on these methods to update or extract type information. This will greatly reduce the amount of “boilerplate” code currently required for updating/validation of config and the map for vidgrind/netreceiver.

It is recommended that a template be used for generation of these interface implementations, which can easily be adapted for changes etc.

Comments (1)

  1. Log in to comment