go-api-boilerplate: github.com/vardius/go-api-boilerplate/cmd/auth/internal


applicationPackage application is a layer responsible for driving the workflow of the application, matching the use cases at hand.
domainPackage domain is the heart layer of the software, and this is where the interesting stuff happens.
domain/clientPackage client holds client domain logic
domain/tokenPackage token holds token domain logic
infrastructurePackage infrastructure is a layer that holds everything that interacts with other systems - Secondary/Driven Adapters.
infrastructure/persistencePackage persistence holds view models and repository interfaces
infrastructure/persistence/mysqlPackage mysql holds view model repositories
infrastructure/repositoryPackage repository holds event sourced repositories
interfacesPackage interfaces is a layer that holds everything that other systems interacts with - Primary/Driving Adapters.
interfaces/grpcPackage grpc provides user grpc server
interfaces/httpPackage http provides routes for http router
interfaces/http/handlersPackage handlers provides http handlers

Updated 2020-09-23. Refresh now. Tools for package owners.