MCPcopy Create free account

hub / github.com/devaccuracy/ledgerforge / functions

Functions1,908 in github.com/devaccuracy/ledgerforge

↓ 1 callersMethodapplyTransactionToBalances
applyTransactionToBalances applies a transaction to the provided balances. It starts a tracing span, calculates new balances, and updates the balances
transaction.go:412
↓ 1 callersFunctionaverage
(values []float64)
tests/loadtest/tools/queue_benchmark.go:601
↓ 1 callersFunctionbalanceDistributions
balanceDistributions ensures the sum of all distributions equals the total amount
model/transaction.go:301
↓ 1 callersFunctionbigIntMapsEqual
Helper function for big.Int map comparisons
model/transaction_test.go:35
↓ 1 callersFunctionbindEvents
()
tests/loadtest/tools/dashboard/app.js:40
↓ 1 callersFunctionboolRate
(ok bool)
tests/loadtest/tools/queue_benchmark.go:644
↓ 1 callersFunctionbuildBalanceIdCondition
(f QueryFilter, tableAlias string, argPosition int)
internal/filter/sql_special.go:10
↓ 1 callersFunctionbuildContainmentJSON
(key string, value interface{})
internal/filter/helpers.go:32
↓ 1 callersMethodbuildFundAllocationList
buildFundAllocationList builds a list of fund allocations for metadata storage. Parameters: - allocations []Allocation: The calculated allocations. -
lineage.go:781
↓ 1 callersFunctionbuildIndicatorCondition
(f QueryFilter, tableAlias string, argPosition int)
internal/filter/sql_special.go:66
↓ 1 callersFunctionbuildJSONPathCondition
(f QueryFilter, tableAlias string, argPosition int)
internal/filter/sql_json.go:9
↓ 1 callersFunctionbuildOptions
()
tests/loadtest/script.js:48
↓ 1 callersMethodbuildQueuedCoalescingBatchForScope
(ctx context.Context, leader *model.Transaction, scope queuedCoalescingScope, batchSize int)
transaction.go:1346
↓ 1 callersFunctionbuildRunMeta
(run, points)
tests/loadtest/tools/dashboard/app.js:1057
↓ 1 callersFunctionbuildStandardCondition
(f QueryFilter, table string, tableAlias string, argPosition int)
internal/filter/sql_builder.go:106
↓ 1 callersFunctionbuildStats
(overview, series)
tests/loadtest/tools/dashboard/app.js:1169
↓ 1 callersFunctionbuildSummary
(cfg benchmarkConfig, start, end snapshot, samples []snapshot)
tests/loadtest/tools/queue_benchmark.go:343
↓ 1 callersFunctionbuild_handler
(scan_root: Path)
tests/loadtest/tools/dashboard.py:23
↓ 1 callersMethodcalculateMatchingBounds
calculateMatchingBounds calculates the query bounds (amount, date) for matching external transactions against internal ones. It iterates through match
reconciliation.go:1419
↓ 1 callersMethodcalculateProviderBreakdown
calculateProviderBreakdown calculates the fund breakdown for a provider. Parameters: - mapping model.LineageMapping: The lineage mapping for the prov
lineage.go:1112
↓ 1 callersMethodcanCoalesceQueuedOriginal
(transaction *model.Transaction)
transaction.go:1593
↓ 1 callersMethodcanCoalesceQueuedTransaction
(transaction *model.Transaction)
transaction.go:1563
↓ 1 callersMethodcheckBalanceMonitors
checkBalanceMonitors checks the balance monitors for a given updated balance. It starts a tracing span, fetches the monitors, and checks each monitor'
balance.go:61
↓ 1 callersMethodcheckTransactionCommitStatus
checkTransactionCommitStatus checks if a transaction can be committed based on its remaining amount. Parameters: - amountLeft *big.Int: The remaining
inflight_transaction.go:301
↓ 1 callersFunctioncleanupTempFile
(file *os.File)
internal/files/files.go:156
↓ 1 callersFunctioncoalescingBalancesForTransaction
(balancesByID map[string]*model.Balance, txn *model.Transaction)
transaction.go:1487
↓ 1 callersFunctioncollectLatencySeries
(samples []snapshot)
tests/loadtest/tools/queue_benchmark.go:546
↓ 1 callersFunctioncollectQueuedCoalescingBalanceIDs
(transactions []*model.Transaction)
transaction.go:1408
↓ 1 callersFunctioncombineDistributions
combineDistributions merges fixed and percentage amounts into the result
model/transaction.go:272
↓ 1 callersFunctioncomputeApdex
(values, threshold = 300)
tests/loadtest/tools/dashboard/app.js:1324
↓ 1 callersFunctioncompute_apdex
(values: list[float], threshold: float = 300.0)
tests/loadtest/tools/dashboard_parser.py:436
↓ 1 callersFunctionconfiguredPrefixes
(cfg benchmarkConfig)
tests/loadtest/tools/queue_benchmark.go:313
↓ 1 callersFunctionconvertDecimalToPrecise
convertDecimalToPrecise converts a decimal amount to precise integer by multiplying by precision
model/model.go:368
↓ 1 callersMethodconvertLargeNumbers
convertLargeNumbers converts big.Int values to strings for Typesense compatibility
internal/search/search.go:323
↓ 1 callersFunctioncreateAndPopulateTempFile
(filename string, reader io.Reader)
internal/files/files.go:89
↓ 1 callersMethodcreateCollections
(ctx context.Context)
internal/search/reindex.go:177
↓ 1 callersFunctioncreateColumnMap
(headers []string)
internal/files/files.go:381
↓ 1 callersMethodcreateReconciler
createReconciler creates a reconciler function based on the specified strategy, group criteria, and matching rules. Parameters: - strategy: The reconc
reconciliation.go:406
↓ 1 callersFunctioncreateTempFile
(originalFilename string)
internal/files/files.go:141
↓ 1 callersMethodcreateTransactionProcessor
createTransactionProcessor creates a new transaction processor for the reconciliation. Parameters: - reconciliation: The reconciliation object represe
reconciliation.go:432
↓ 1 callersFunctiondbHasData
(ctx context.Context, ds database.IDataSource)
internal/search/reindex.go:427
↓ 1 callersFunctiondetectFileTypeFromTempFile
(tempFile *os.File, filename string)
internal/files/files.go:112
↓ 1 callersMethoddominantCurrency
dominantCurrency returns the dominant currency in a group of transactions. If there is only one currency, it returns that currency, otherwise, it retu
reconciliation.go:1098
↓ 1 callersMethoddropCollections
(ctx context.Context)
internal/search/reindex.go:165
↓ 1 callersMethodensureDefaultGeneralLedger
EnsureDefaultGeneralLedger ensures that the default general ledger exists in Typesense.
internal/search/search.go:190
↓ 1 callersMethodensureEnabled
()
internal/tokenization/tokenization.go:48
↓ 1 callersFunctionensureRunDetail
(runId)
tests/loadtest/tools/dashboard/app.js:208
↓ 1 callersMethodensureSchemaFields
ensureSchemaFields ensures all required schema fields are present with default values
internal/search/search.go:343
↓ 1 callersMethodexecuteCLI
executeCLI runs the root command, handling any errors that occur during execution. It serves as the main entry point for the CLI application.
cmd/main.go:130
↓ 1 callersMethodexecuteWithLock
executeWithLock executes a function with distributed locks to ensure exclusive access to both source and destination balances. It resolves balance IDs
transaction.go:1156
↓ 1 callersMethodextractFundAllocation
extractFundAllocation extracts fund allocation data from transaction metadata. Parameters: - metadata map[string]interface{}: The transaction metadat
lineage.go:1191
↓ 1 callersFunctionfetchRunDetail
(runId)
tests/loadtest/tools/dashboard/app.js:200
↓ 1 callersFunctionfetchTransactionPrecisionFromDB
fetchTransactionPrecisionFromDB is a placeholder for fetching precision from the database. In a real application, this would query your database. It r
model/model.go:263
↓ 1 callersMethodfinalizeReconciliation
finalizeReconciliation finalizes the reconciliation process by updating its status and recording the final match/unmatch counts. Parameters: - ctx: Th
reconciliation.go:586
↓ 1 callersMethodfinalizeVoidTransaction
finalizeVoidTransaction finalizes the voiding of a transaction by updating its status and generating new identifiers. It starts a tracing span, update
inflight_transaction.go:566
↓ 1 callersMethodfindMatchingInternalTransaction
findMatchingInternalTransaction attempts to find an internal transaction that matches the given external transaction. It processes the transactions in
reconciliation.go:958
↓ 1 callersFunctionfind_matching_ndjson
( summary: dict[str, Any], ndjson_runs: list[dict[str, Any]], consumed_ndjson_ids: set[str], )
tests/loadtest/tools/dashboard_parser.py:67
↓ 1 callersFunctionfloatMapToBigIntMap
Helper to convert map of float64 to map of *big.Int with precision applied
model/transaction_test.go:57
↓ 1 callersFunctionfloorMinute
(timestamp)
tests/loadtest/tools/dashboard/app.js:1333
↓ 1 callersFunctionfloor_minute
(timestamp: str)
tests/loadtest/tools/dashboard_parser.py:407
↓ 1 callersFunctionfloorminute
(ts: str)
tests/loadtest/tools/k6_json_to_tpm.py:11
↓ 1 callersFunctionformatDate
(value)
tests/loadtest/tools/dashboard/app.js:1494
↓ 1 callersFunctionformatDuration
(value)
tests/loadtest/tools/dashboard/app.js:1431
↓ 1 callersMethodformatPreservingTokenize
formatPreservingTokenize tokenizes a value while preserving its format. It uses a deterministic approach to generate a token with the same format. Pa
internal/tokenization/tokenization.go:208
↓ 1 callersFunctionformatRate
(value)
tests/loadtest/tools/dashboard/app.js:1409
↓ 1 callersFunctionformat_decimal
(value: float | None)
tests/loadtest/tools/dashboard_parser.py:508
↓ 1 callersFunctionformat_rate
(value: float | None)
tests/loadtest/tools/dashboard_parser.py:486
↓ 1 callersMethodgeTask
geTask generates a task for a transaction and assigns it to a specific queue based on the balance ID. It ensures that transactions are evenly distribu
queue.go:226
↓ 1 callersMethodgetBalanceInfo
getBalanceInfo retrieves basic information about a balance
database/balance.go:1428
↓ 1 callersMethodgetBalanceMonitorsCached
getBalanceMonitorsCached retrieves balance monitors with caching. It first checks the cache for monitors, and if not found, fetches from the database
balance.go:101
↓ 1 callersFunctiongetBalanceSchema
getBalanceSchema returns the schema for the "balances" collection.
internal/search/search.go:543
↓ 1 callersFunctiongetDatePrecisionFromString
(dateStr string)
internal/filter/datetime.go:36
↓ 1 callersFunctiongetEventFromStatus
getEventFromStatus maps a transaction status to a corresponding event string. Parameters: - status string: The status of the transaction. Returns: -
webhooks.go:48
↓ 1 callersFunctiongetIdentitySchema
getIdentitySchema returns the schema for the "identities" collection.
internal/search/search.go:630
↓ 1 callersFunctiongetLedgerSchema
getLedgerSchema returns the schema for the "ledgers" collection.
internal/search/search.go:525
↓ 1 callersMethodgetMatchingRules
getMatchingRules retrieves a list of matching rules by their IDs. Parameters: - ctx: The context for managing the request. - matchingRuleIDs: The list
reconciliation.go:1300
↓ 1 callersMethodgetOrCreateDestinationLineageBalances
getOrCreateDestinationLineageBalances retrieves or creates shadow and aggregate balances for the destination. Parameters: - ctx context.Context: The
lineage.go:683
↓ 1 callersFunctiongetOrCreateHeartbeatID
()
cmd/server.go:109
↓ 1 callersMethodgetOrCreateLineageBalances
getOrCreateLineageBalances retrieves or creates the shadow and aggregate balances for lineage tracking. Parameters: - ctx context.Context: The contex
lineage.go:289
↓ 1 callersMethodgetOriginalTransactionForRefund
getOriginalTransactionForRefund retrieves the original transaction to be refunded, checking both the database and the queue if necessary.
transaction.go:2254
↓ 1 callersMethodgetQueuedBatchExistingReferences
(ctx context.Context, transactions []*model.Transaction)
transaction.go:1501
↓ 1 callersFunctiongetReconciliationSchema
getReconciliationSchema returns the schema for the "reconciliations" collection.
internal/search/search.go:611
↓ 1 callersMethodgetResults
getResults returns the total counts of matched and unmatched transactions processed during reconciliation. Returns: - int: The count of matched transa
reconciliation.go:524
↓ 1 callersMethodgetSourceAggregateBalance
getSourceAggregateBalance retrieves or creates the aggregate balance for the source identity. Parameters: - ctx context.Context: The context for the
lineage.go:533
↓ 1 callersMethodgroupExternalTransactions
groupExternalTransactions retrieves and groups external transactions based on the specified criteria. This is used in many-to-one reconciliation. Para
reconciliation.go:811
↓ 1 callersMethodgroupInternalTransactions
groupInternalTransactions groups internal transactions based on the specified criteria for reconciliation. Parameters are the same as `groupExternalTr
reconciliation.go:944
↓ 1 callersFunctiongroupedExternalTransactionsQuery
(groupCriteria string)
database/reconciliation.go:802
↓ 1 callersFunctiongroupedTransactionsQuery
(groupCriteria string)
database/transaction.go:1003
↓ 1 callersFunctionhandleRunSelection
(runId)
tests/loadtest/tools/dashboard/app.js:145
↓ 1 callersFunctionhandleSmallAmount
handleSmallAmount assigns entire amount to first distribution for very small amounts
model/transaction.go:394
↓ 1 callersMethodhandleSplitTransactions
handleSplitTransactions attempts to split a transaction into multiple transactions if needed. It starts a tracing span, attempts to split the transact
transaction.go:1886
↓ 1 callersMethodhandle_run
(self, run_id: str)
tests/loadtest/tools/dashboard.py:58
↓ 1 callersFunctionhumanizeMetricName
(metricName)
tests/loadtest/tools/dashboard/app.js:1231
↓ 1 callersFunctionhumanizeMetricTags
(tags)
tests/loadtest/tools/dashboard/app.js:1283
↓ 1 callersFunctionhumanizeThreshold
(threshold)
tests/loadtest/tools/dashboard/app.js:1197
↓ 1 callersFunctionhumanizeThresholdRule
(rule, metricName)
tests/loadtest/tools/dashboard/app.js:1243
↓ 1 callersMethodindexBalances
(ctx context.Context)
internal/search/reindex.go:292
↓ 1 callersMethodindexIdentities
(ctx context.Context)
internal/search/reindex.go:239
↓ 1 callersMethodindexLedgers
(ctx context.Context)
internal/search/reindex.go:189
↓ 1 callersMethodindexTransactions
(ctx context.Context)
internal/search/reindex.go:345
← previousnext →701–800 of 1,908, ranked by callers