tavern

package module
v0.0.0-...-c0e4307 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 2 Imported by: 0

README

Domain-Driven Design in Golang

In this article we have covered the basics of Domain-Driven Design, in short.

Entities — Mutable Identifiable Structs. Value Objects — Immutable Unidentifiable Structs. Aggregates — Combined set of Entities and Value objects, stored in Repositories. Repository— A implementation of storing aggregates or other information Factory— A constructor to create complex objects and make creating new instance easier for the developers of other domains Service — A collection of repositories and sub-services that builds together the business flow

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	ID          uuid.UUID
	Name        string
	Description string
}

type Person

type Person struct {
	ID   uuid.UUID
	Name string
	Age  uint8
}

type Transaction

type Transaction struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
domain
services

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL