Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
caweb
Package main is the main entry point of the clean-arch web project.
|
Package main is the main entry point of the clean-arch web project. |
internal
|
|
test/dbcontainer
Package dbcontainer is an internal helper for the test packages.
|
Package dbcontainer is an internal helper for the test packages. |
pkg
|
|
adapter/config
Package config is an adapter which allows users to write a yaml configuration file and allow the caweb to instantiate different components, from the adapter or use cases layers, using those configuration settings.
|
Package config is an adapter which allows users to write a yaml configuration file and allow the caweb to instantiate different components, from the adapter or use cases layers, using those configuration settings. |
adapter/db/postgres
Package postgres provides an adapter for a PostgreSQL database in order to expose the interfaces which are required in the github.com/momeni/clean-arch/pkg/core/repo package.
|
Package postgres provides an adapter for a PostgreSQL database in order to expose the interfaces which are required in the github.com/momeni/clean-arch/pkg/core/repo package. |
adapter/db/postgres/carsrp
Package carsrp is the adapter for the cars repository.
|
Package carsrp is the adapter for the cars repository. |
adapter/restful/gin
Package gin wraps the gin-gonic web framework and lists the middlewares which are expected to be enabled/disabled by the configuration settings.
|
Package gin wraps the gin-gonic web framework and lists the middlewares which are expected to be enabled/disabled by the configuration settings. |
adapter/restful/gin/carsrs
Package carsrs realizes the cars resource, allowing the cars manipulation REST APIs to be accepted and delegated to the cars use cases respectively.
|
Package carsrs realizes the cars resource, allowing the cars manipulation REST APIs to be accepted and delegated to the cars use cases respectively. |
adapter/restful/gin/routes
Package routes contains all resource packages and facilitates instantiation and registration of all repo, use case, and resource packages based on the user provided configuration settings.
|
Package routes contains all resource packages and facilitates instantiation and registration of all repo, use case, and resource packages based on the user provided configuration settings. |
adapter/restful/gin/serdser
Package serdser contains the reusable serialization/deserialization logics in order to be used by the resource packages.
|
Package serdser contains the reusable serialization/deserialization logics in order to be used by the resource packages. |
core/cerr
Package cerr represents the core layer errors.
|
Package cerr represents the core layer errors. |
core/model
Package model defines the inner most layer of the Clean Architecture containing the business-level models, also called entities or domain.
|
Package model defines the inner most layer of the Clean Architecture containing the business-level models, also called entities or domain. |
core/repo
Package repo specifies the expected interfaces for management of repositories, including a database connections pool which can be used concurrently by several goroutines, how individual connections and transactions may be obtained from it, which repositories exist, and which actions may be performed on them.
|
Package repo specifies the expected interfaces for management of repositories, including a database connections pool which can be used concurrently by several goroutines, how individual connections and transactions may be obtained from it, which repositories exist, and which actions may be performed on them. |
core/usecase/carsuc
Package carsuc contains the cars UseCase which supports the cars related use cases.
|
Package carsuc contains the cars UseCase which supports the cars related use cases. |
Click to show internal directories.
Click to hide internal directories.