MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / GetIdentity

Method GetIdentity

identity.go:76–78  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

74// - *model.Identity: A pointer to the Identity model if found.
75// - error: An error if the identity could not be retrieved.
76func (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//

Callers 7

applyAccountNameMethod · 0.95
UpdateMetadataMethod · 0.95
TokenizeIdentityFieldMethod · 0.95
DetokenizeIdentityMethod · 0.95
TestGetIdentityFunction · 0.95

Calls 1

GetIdentityByIDMethod · 0.65

Tested by 1

TestGetIdentityFunction · 0.76