hashport-validator icon indicating copy to clipboard operation
hashport-validator copied to clipboard

Refactor exported structs

Open vectorman1 opened this issue 2 years ago • 0 comments

Implementation structs are exported when they shouldn't be. Only the interface should be exported. This is pretty much present throughout every app layer.

Examples include all services under

  • app/services
  • app/persistence
  • app/process
  • mocks/...
  • ...

Ensuring these structs are not exported improves the code's testability, usability, maintainability, and readability.

vectorman1 avatar Mar 16 '22 15:03 vectorman1