New create an empty Entity
(definition Definition)
| 53 | |
| 54 | // New create an empty Entity |
| 55 | func New(definition Definition) *Entity { |
| 56 | return &Entity{ |
| 57 | Definition: definition, |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | // Read will read and decode a stored local Entity from a repository |
| 62 | func Read[EntityT entity.Interface](def Definition, wrapper func(e *Entity) EntityT, repo repository.ClockedRepo, resolvers entity.Resolvers, id entity.Id) (EntityT, error) { |
no outgoing calls