diff options
author | Michael Muré <batolettre@gmail.com> | 2023-03-29 15:40:10 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2023-03-29 15:40:10 +0200 |
commit | f0167a1d6068d22af5ffff260e2848f7c14a71b3 (patch) | |
tree | e0d435ce8abfcad826b1d47b37932f6872995d44 /entity/interface.go | |
parent | 281d4a642d87a23ed62045db899ff967abf8b818 (diff) | |
download | git-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.go | 14 |
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 -} |