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

Method CreateIdentity

database/repository.go:139–139  ·  view source on GitHub ↗
(identity model.Identity)

Source from the content-addressed store, hash-verified

137// identity defines methods for handling identities.
138type identity interface {
139 CreateIdentity(identity model.Identity) (model.Identity, error) // Creates a new identity
140 GetIdentityByID(id string) (*model.Identity, error) // Retrieves an identity by ID
141 GetAllIdentities() ([]model.Identity, error) // Retrieves all identities (legacy)
142 GetAllIdentitiesPaginated(limit, offset int) ([]model.Identity, error) // Retrieves identities with pagination (legacy)

Callers 12

CreateIdentityMethod · 0.65
TestLineageFullFlowFunction · 0.65
TestLineageInflightHoldFunction · 0.65
TestLineageInflightVoidFunction · 0.65
CreateIdentityMethod · 0.65
TestGetAccountFunction · 0.65
TestGetIdentityFunction · 0.65
TestUpdateIdentityFunction · 0.65
TestGetAllIdentitiesFunction · 0.65

Implementers 2

Datasourcedatabase/db.go
MockDataSourcedatabase/mocks/repo_mocks.go

Calls

no outgoing calls

Tested by 10

TestLineageFullFlowFunction · 0.52
TestLineageInflightHoldFunction · 0.52
TestLineageInflightVoidFunction · 0.52
TestGetAccountFunction · 0.52
TestGetIdentityFunction · 0.52
TestUpdateIdentityFunction · 0.52
TestGetAllIdentitiesFunction · 0.52