This is an example repository for showing the standard module design used in Re:Earth's Go server application.
- cmd: Entrypoint
- internal
- boot: Read the config, initialize DB drivers, etc., and finally initialize usecases and run the appropriate transport layer.
- infra: Implements repos, policies, and gateways.
- gcp
- mongo
- ...
- transport: UI layer
- cli
- echo
- gql
- ...
- usecase: Defines interfaces of repos, policies, and gateways.
- xxxuc Actual usecase implementation
- ...
- pkg: Domain models