Skip to content

nhatanh-zen8/base-go

 
 

Repository files navigation

Base project for Golang

Structure:

  • IO/Infra layer
    • adapter/
      • Infra/IO layer to interact with external systems
      • DB, repositories and the like live here
    • gateway/
      • Infra/IO layer for external systems to interact with this system
      • Typically the place for http/grpc/graphQL... server and their controllers
  • Application logic layer
    • application/
      • Main application logic. Consists of multiple independent interactors, each interactor groups a set of related usecase flows
    • services/
      • Services providing reusable activities/steps for usecase flows
      • Each service may wrap multiple adapters
  • Core domain layer
    • domain/
      • Core domain model and logic
  • common/
    • Commonly used stuffs used at multiple layers, e.g. logger, utilities and so on
  • migrations/
    • Migration scripts

About

Base project for Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%