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

Method UpdateMetadata

metadata.go:50–174  ·  view source on GitHub ↗

UpdateMetadata updates the metadata for a given entity ID. It first determines the entity type, retrieves current metadata, merges it with new metadata, updates the entity with the merged metadata, and queues the updated entity for re-indexing in Typesense. Parameters: - ctx: The context for the op

(ctx context.Context, entityID string, newMetadata map[string]interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestUpdateMetadataFunction · 0.95

Calls 10

GetLedgerByIDMethod · 0.95
updateEntityMetadataMethod · 0.95
GetTransactionMethod · 0.95
GetBalanceByIDMethod · 0.95
GetIdentityMethod · 0.95
NotifyErrorFunction · 0.92
getEntityTypeFromIDFunction · 0.85
mergeMetadataFunction · 0.85
queueIndexDataMethod · 0.80

Tested by 1

TestUpdateMetadataFunction · 0.76