teragrep / lsh_01

logstash-http-input to syslog bridge
https://teragrep.com
Apache License 2.0
0 stars 3 forks source link

Change configs to use decorators instead of the Validateable interface #72

Open 51-code opened 2 months ago

51-code commented 2 months ago

Description

Currently the Config objects all implement the Validateable interface. This requires that the validate() function is called before using the config, so a better way would be to create ValidatedConfig objects for each and use them as decorators.

Would require writing the validations for each config, for now only PayloadConfig and RelpConfig have implemented the validation functions.