(i *identity.Identity, repo repository.ClockedRepo, entityUpdated func(id entity.Id) error)
| 21 | } |
| 22 | |
| 23 | func NewIdentityCache(i *identity.Identity, repo repository.ClockedRepo, entityUpdated func(id entity.Id) error) *IdentityCache { |
| 24 | return &IdentityCache{ |
| 25 | repo: repo, |
| 26 | entityUpdated: entityUpdated, |
| 27 | Identity: i, |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func (i *IdentityCache) notifyUpdated() error { |
| 32 | return i.entityUpdated(i.Identity.Id()) |
no outgoing calls
no test coverage detected