go-clean-arch icon indicating copy to clipboard operation
go-clean-arch copied to clipboard

Question About Layers

Open developer2346 opened this issue 3 years ago • 0 comments

Hi I am developing my own website using this project structure. Currently I need to have a logging package and also use of JWT. For the logging package, is it good idea to put its interface inside domain folder and then implement its methods in adaptors layer? And for JWT, I think it doesn't need interface as it is less probable to be ejected. So where to put its codes like GenerateToken and ValidateToken methods? if there be a folder called pkg and then putting JWT there, it will go from inner layer to outer layer however. Could you please help me how to implements tools like jwt and bcrypt. Also where and how to implement a logging feature. Thanks

developer2346 avatar Aug 26 '22 18:08 developer2346