Hello and happy almost New Year. I've refactored the ValidateDatabaseSchema() function from my latest merged PR (https://github.com/fullstorydev/hauser/pull/43) so that its invocation in func (rs *Redshift) MakeRedshiftConnection() can be tested.
I've also implemented a pattern using embedded types and interfaces in the config package that binds configuration sections with validator functions (Redshift for now, but could be applied to S3, GCS, root, etc. in the future).
Hello and happy almost New Year. I've refactored the
ValidateDatabaseSchema()
function from my latest merged PR (https://github.com/fullstorydev/hauser/pull/43) so that its invocation infunc (rs *Redshift) MakeRedshiftConnection()
can be tested.I've also implemented a pattern using embedded types and interfaces in the
config
package that binds configuration sections with validator functions (Redshift for now, but could be applied to S3, GCS, root, etc. in the future).