summaryrefslogtreecommitdiffstatshomepage
path: root/entity/interface.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2023-03-29 15:40:10 +0200
committerMichael Muré <batolettre@gmail.com>2023-03-29 15:40:10 +0200
commitf0167a1d6068d22af5ffff260e2848f7c14a71b3 (patch)
treee0d435ce8abfcad826b1d47b37932f6872995d44 /entity/interface.go
parent281d4a642d87a23ed62045db899ff967abf8b818 (diff)
downloadgit-bug-f0167a1d6068d22af5ffff260e2848f7c14a71b3.tar.gz
git-bug-f0167a1d6068d22af5ffff260e2848f7c14a71b3.zip
invert package dependency between identity<-->entity
Diffstat (limited to 'entity/interface.go')
-rw-r--r--entity/interface.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/entity/interface.go b/entity/interface.go
deleted file mode 100644
index 3035ac88..00000000
--- a/entity/interface.go
+++ /dev/null
@@ -1,14 +0,0 @@
-package entity
-
-type Interface interface {
- // Id return the Entity identifier
- //
- // This Id need to be immutable without having to store the entity somewhere (ie, an entity only in memory
- // should have a valid Id, and it should not change if further edit are done on this entity).
- // How to achieve that is up to the entity itself. A common way would be to take a hash of an immutable data at
- // the root of the entity.
- // It is acceptable to use such a hash and keep mutating that data as long as Id() is not called.
- Id() Id
- // Validate check if the Entity data is valid
- Validate() error
-}