go-api-boilerplate: github.com/vardius/go-api-boilerplate/cmd/user/internal/domain Index | Files | Directories

package domain

import "github.com/vardius/go-api-boilerplate/cmd/user/internal/domain"

Package domain is the heart layer of the software, and this is where the interesting stuff happens. The objects in this layer contain the data and the logic to manipulate that data, that is specific to the Domain itself and it’s independent of the business processes that trigger that logic, they are independent and completely unaware of the Application Layer. There is one package per aggregate and to each aggregate belongs entities, value objects, domain events, a repository interface and sometimes factories. The core of the business logic, such as determining whether a handling event should be registered. The structure and naming of aggregates, classes and methods in the domain layer should follow the ubiquitous language, and you should be able to explain to a domain expert how this part of the software works by drawing a few simple diagrams and using the actual class and method names of the source code.

Index

Package Files

doc.go

Directories

PathSynopsis
userPackage user holds user domain logic

Updated 2020-08-04. Refresh now. Tools for package owners.