bxcodec / go-clean-arch

Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
MIT License
9.03k stars 1.19k forks source link

Question About Layers #66

Open developer2346 opened 2 years ago

developer2346 commented 2 years ago

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