GetIdentity retrieves an identity by its ID. Parameters: - id string: The ID of the identity to retrieve. Returns: - *model.Identity: A pointer to the Identity model if found. - error: An error if the identity could not be retrieved.
(id string)
| 74 | // - *model.Identity: A pointer to the Identity model if found. |
| 75 | // - error: An error if the identity could not be retrieved. |
| 76 | func (l *LedgerForge) GetIdentity(id string) (*model.Identity, error) { |
| 77 | return l.datasource.GetIdentityByID(id) |
| 78 | } |
| 79 | |
| 80 | // GetAllIdentities retrieves all identities from the database. |
| 81 | // |