Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/devaccuracy/ledgerforge
/ functions
Functions
1,908 in github.com/devaccuracy/ledgerforge
⨍
Functions
1,908
◇
Types & classes
159
↓ 1 callers
Method
applyTransactionToBalances
applyTransactionToBalances applies a transaction to the provided balances. It starts a tracing span, calculates new balances, and updates the balances
transaction.go:412
↓ 1 callers
Function
average
(values []float64)
tests/loadtest/tools/queue_benchmark.go:601
↓ 1 callers
Function
balanceDistributions
balanceDistributions ensures the sum of all distributions equals the total amount
model/transaction.go:301
↓ 1 callers
Function
bigIntMapsEqual
Helper function for big.Int map comparisons
model/transaction_test.go:35
↓ 1 callers
Function
bindEvents
()
tests/loadtest/tools/dashboard/app.js:40
↓ 1 callers
Function
boolRate
(ok bool)
tests/loadtest/tools/queue_benchmark.go:644
↓ 1 callers
Function
buildBalanceIdCondition
(f QueryFilter, tableAlias string, argPosition int)
internal/filter/sql_special.go:10
↓ 1 callers
Function
buildContainmentJSON
(key string, value interface{})
internal/filter/helpers.go:32
↓ 1 callers
Method
buildFundAllocationList
buildFundAllocationList builds a list of fund allocations for metadata storage. Parameters: - allocations []Allocation: The calculated allocations. -
lineage.go:781
↓ 1 callers
Function
buildIndicatorCondition
(f QueryFilter, tableAlias string, argPosition int)
internal/filter/sql_special.go:66
↓ 1 callers
Function
buildJSONPathCondition
(f QueryFilter, tableAlias string, argPosition int)
internal/filter/sql_json.go:9
↓ 1 callers
Function
buildOptions
()
tests/loadtest/script.js:48
↓ 1 callers
Method
buildQueuedCoalescingBatchForScope
(ctx context.Context, leader *model.Transaction, scope queuedCoalescingScope, batchSize int)
transaction.go:1346
↓ 1 callers
Function
buildRunMeta
(run, points)
tests/loadtest/tools/dashboard/app.js:1057
↓ 1 callers
Function
buildStandardCondition
(f QueryFilter, table string, tableAlias string, argPosition int)
internal/filter/sql_builder.go:106
↓ 1 callers
Function
buildStats
(overview, series)
tests/loadtest/tools/dashboard/app.js:1169
↓ 1 callers
Function
buildSummary
(cfg benchmarkConfig, start, end snapshot, samples []snapshot)
tests/loadtest/tools/queue_benchmark.go:343
↓ 1 callers
Function
build_handler
(scan_root: Path)
tests/loadtest/tools/dashboard.py:23
↓ 1 callers
Method
calculateMatchingBounds
calculateMatchingBounds calculates the query bounds (amount, date) for matching external transactions against internal ones. It iterates through match
reconciliation.go:1419
↓ 1 callers
Method
calculateProviderBreakdown
calculateProviderBreakdown calculates the fund breakdown for a provider. Parameters: - mapping model.LineageMapping: The lineage mapping for the prov
lineage.go:1112
↓ 1 callers
Method
canCoalesceQueuedOriginal
(transaction *model.Transaction)
transaction.go:1593
↓ 1 callers
Method
canCoalesceQueuedTransaction
(transaction *model.Transaction)
transaction.go:1563
↓ 1 callers
Method
checkBalanceMonitors
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 callers
Method
checkTransactionCommitStatus
checkTransactionCommitStatus checks if a transaction can be committed based on its remaining amount. Parameters: - amountLeft *big.Int: The remaining
inflight_transaction.go:301
↓ 1 callers
Function
cleanupTempFile
(file *os.File)
internal/files/files.go:156
↓ 1 callers
Function
coalescingBalancesForTransaction
(balancesByID map[string]*model.Balance, txn *model.Transaction)
transaction.go:1487
↓ 1 callers
Function
collectLatencySeries
(samples []snapshot)
tests/loadtest/tools/queue_benchmark.go:546
↓ 1 callers
Function
collectQueuedCoalescingBalanceIDs
(transactions []*model.Transaction)
transaction.go:1408
↓ 1 callers
Function
combineDistributions
combineDistributions merges fixed and percentage amounts into the result
model/transaction.go:272
↓ 1 callers
Function
computeApdex
(values, threshold = 300)
tests/loadtest/tools/dashboard/app.js:1324
↓ 1 callers
Function
compute_apdex
(values: list[float], threshold: float = 300.0)
tests/loadtest/tools/dashboard_parser.py:436
↓ 1 callers
Function
configuredPrefixes
(cfg benchmarkConfig)
tests/loadtest/tools/queue_benchmark.go:313
↓ 1 callers
Function
convertDecimalToPrecise
convertDecimalToPrecise converts a decimal amount to precise integer by multiplying by precision
model/model.go:368
↓ 1 callers
Method
convertLargeNumbers
convertLargeNumbers converts big.Int values to strings for Typesense compatibility
internal/search/search.go:323
↓ 1 callers
Function
createAndPopulateTempFile
(filename string, reader io.Reader)
internal/files/files.go:89
↓ 1 callers
Method
createCollections
(ctx context.Context)
internal/search/reindex.go:177
↓ 1 callers
Function
createColumnMap
(headers []string)
internal/files/files.go:381
↓ 1 callers
Method
createReconciler
createReconciler creates a reconciler function based on the specified strategy, group criteria, and matching rules. Parameters: - strategy: The reconc
reconciliation.go:406
↓ 1 callers
Function
createTempFile
(originalFilename string)
internal/files/files.go:141
↓ 1 callers
Method
createTransactionProcessor
createTransactionProcessor creates a new transaction processor for the reconciliation. Parameters: - reconciliation: The reconciliation object represe
reconciliation.go:432
↓ 1 callers
Function
dbHasData
(ctx context.Context, ds database.IDataSource)
internal/search/reindex.go:427
↓ 1 callers
Function
detectFileTypeFromTempFile
(tempFile *os.File, filename string)
internal/files/files.go:112
↓ 1 callers
Method
dominantCurrency
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 callers
Method
dropCollections
(ctx context.Context)
internal/search/reindex.go:165
↓ 1 callers
Method
ensureDefaultGeneralLedger
EnsureDefaultGeneralLedger ensures that the default general ledger exists in Typesense.
internal/search/search.go:190
↓ 1 callers
Method
ensureEnabled
()
internal/tokenization/tokenization.go:48
↓ 1 callers
Function
ensureRunDetail
(runId)
tests/loadtest/tools/dashboard/app.js:208
↓ 1 callers
Method
ensureSchemaFields
ensureSchemaFields ensures all required schema fields are present with default values
internal/search/search.go:343
↓ 1 callers
Method
executeCLI
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 callers
Method
executeWithLock
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 callers
Method
extractFundAllocation
extractFundAllocation extracts fund allocation data from transaction metadata. Parameters: - metadata map[string]interface{}: The transaction metadat
lineage.go:1191
↓ 1 callers
Function
fetchRunDetail
(runId)
tests/loadtest/tools/dashboard/app.js:200
↓ 1 callers
Function
fetchTransactionPrecisionFromDB
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 callers
Method
finalizeReconciliation
finalizeReconciliation finalizes the reconciliation process by updating its status and recording the final match/unmatch counts. Parameters: - ctx: Th
reconciliation.go:586
↓ 1 callers
Method
finalizeVoidTransaction
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 callers
Method
findMatchingInternalTransaction
findMatchingInternalTransaction attempts to find an internal transaction that matches the given external transaction. It processes the transactions in
reconciliation.go:958
↓ 1 callers
Function
find_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 callers
Function
floatMapToBigIntMap
Helper to convert map of float64 to map of *big.Int with precision applied
model/transaction_test.go:57
↓ 1 callers
Function
floorMinute
(timestamp)
tests/loadtest/tools/dashboard/app.js:1333
↓ 1 callers
Function
floor_minute
(timestamp: str)
tests/loadtest/tools/dashboard_parser.py:407
↓ 1 callers
Function
floorminute
(ts: str)
tests/loadtest/tools/k6_json_to_tpm.py:11
↓ 1 callers
Function
formatDate
(value)
tests/loadtest/tools/dashboard/app.js:1494
↓ 1 callers
Function
formatDuration
(value)
tests/loadtest/tools/dashboard/app.js:1431
↓ 1 callers
Method
formatPreservingTokenize
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 callers
Function
formatRate
(value)
tests/loadtest/tools/dashboard/app.js:1409
↓ 1 callers
Function
format_decimal
(value: float | None)
tests/loadtest/tools/dashboard_parser.py:508
↓ 1 callers
Function
format_rate
(value: float | None)
tests/loadtest/tools/dashboard_parser.py:486
↓ 1 callers
Method
geTask
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 callers
Method
getBalanceInfo
getBalanceInfo retrieves basic information about a balance
database/balance.go:1428
↓ 1 callers
Method
getBalanceMonitorsCached
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 callers
Function
getBalanceSchema
getBalanceSchema returns the schema for the "balances" collection.
internal/search/search.go:543
↓ 1 callers
Function
getDatePrecisionFromString
(dateStr string)
internal/filter/datetime.go:36
↓ 1 callers
Function
getEventFromStatus
getEventFromStatus maps a transaction status to a corresponding event string. Parameters: - status string: The status of the transaction. Returns: -
webhooks.go:48
↓ 1 callers
Function
getIdentitySchema
getIdentitySchema returns the schema for the "identities" collection.
internal/search/search.go:630
↓ 1 callers
Function
getLedgerSchema
getLedgerSchema returns the schema for the "ledgers" collection.
internal/search/search.go:525
↓ 1 callers
Method
getMatchingRules
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 callers
Method
getOrCreateDestinationLineageBalances
getOrCreateDestinationLineageBalances retrieves or creates shadow and aggregate balances for the destination. Parameters: - ctx context.Context: The
lineage.go:683
↓ 1 callers
Function
getOrCreateHeartbeatID
()
cmd/server.go:109
↓ 1 callers
Method
getOrCreateLineageBalances
getOrCreateLineageBalances retrieves or creates the shadow and aggregate balances for lineage tracking. Parameters: - ctx context.Context: The contex
lineage.go:289
↓ 1 callers
Method
getOriginalTransactionForRefund
getOriginalTransactionForRefund retrieves the original transaction to be refunded, checking both the database and the queue if necessary.
transaction.go:2254
↓ 1 callers
Method
getQueuedBatchExistingReferences
(ctx context.Context, transactions []*model.Transaction)
transaction.go:1501
↓ 1 callers
Function
getReconciliationSchema
getReconciliationSchema returns the schema for the "reconciliations" collection.
internal/search/search.go:611
↓ 1 callers
Method
getResults
getResults returns the total counts of matched and unmatched transactions processed during reconciliation. Returns: - int: The count of matched transa
reconciliation.go:524
↓ 1 callers
Method
getSourceAggregateBalance
getSourceAggregateBalance retrieves or creates the aggregate balance for the source identity. Parameters: - ctx context.Context: The context for the
lineage.go:533
↓ 1 callers
Method
groupExternalTransactions
groupExternalTransactions retrieves and groups external transactions based on the specified criteria. This is used in many-to-one reconciliation. Para
reconciliation.go:811
↓ 1 callers
Method
groupInternalTransactions
groupInternalTransactions groups internal transactions based on the specified criteria for reconciliation. Parameters are the same as `groupExternalTr
reconciliation.go:944
↓ 1 callers
Function
groupedExternalTransactionsQuery
(groupCriteria string)
database/reconciliation.go:802
↓ 1 callers
Function
groupedTransactionsQuery
(groupCriteria string)
database/transaction.go:1003
↓ 1 callers
Function
handleRunSelection
(runId)
tests/loadtest/tools/dashboard/app.js:145
↓ 1 callers
Function
handleSmallAmount
handleSmallAmount assigns entire amount to first distribution for very small amounts
model/transaction.go:394
↓ 1 callers
Method
handleSplitTransactions
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 callers
Method
handle_run
(self, run_id: str)
tests/loadtest/tools/dashboard.py:58
↓ 1 callers
Function
humanizeMetricName
(metricName)
tests/loadtest/tools/dashboard/app.js:1231
↓ 1 callers
Function
humanizeMetricTags
(tags)
tests/loadtest/tools/dashboard/app.js:1283
↓ 1 callers
Function
humanizeThreshold
(threshold)
tests/loadtest/tools/dashboard/app.js:1197
↓ 1 callers
Function
humanizeThresholdRule
(rule, metricName)
tests/loadtest/tools/dashboard/app.js:1243
↓ 1 callers
Method
indexBalances
(ctx context.Context)
internal/search/reindex.go:292
↓ 1 callers
Method
indexIdentities
(ctx context.Context)
internal/search/reindex.go:239
↓ 1 callers
Method
indexLedgers
(ctx context.Context)
internal/search/reindex.go:189
↓ 1 callers
Method
indexTransactions
(ctx context.Context)
internal/search/reindex.go:345
← previous
next →
701–800 of 1,908, ranked by callers