MCPcopy Create free account

hub / github.com/devaccuracy/ledgerforge / functions

Functions1,908 in github.com/devaccuracy/ledgerforge

↓ 1 callersFunctioninit
()
tests/loadtest/tools/dashboard/app.js:35
↓ 1 callersFunctioninitializeHTTPClient
initializeHTTPClient creates and configures the HTTP client for webhook requests
ledgerforge.go:101
↓ 1 callersFunctioninitializeHotQueues
()
cmd/workers.go:297
↓ 1 callersFunctioninitializeHotWorkerServer
(conf *config.Configuration, queues map[string]int)
cmd/workers.go:370
↓ 1 callersFunctioninitializeOpenTelemetry
(ctx context.Context)
cmd/server.go:198
↓ 1 callersFunctioninitializePostHog
(cfg *config.Configuration)
cmd/server.go:238
↓ 1 callersFunctioninitializeQueues
()
cmd/workers.go:280
↓ 1 callersMethodinitializeReconciliationProgress
initializeReconciliationProgress initializes or retrieves the progress of a reconciliation. If no progress exists, it creates a new progress entry. Pa
reconciliation.go:390
↓ 1 callersFunctioninitializeRedisClients
initializeRedisClients sets up both the Redis client and Asynq client
ledgerforge.go:65
↓ 1 callersFunctioninitializeRouter
(b *ledgerforgeInstance)
cmd/server.go:182
↓ 1 callersFunctioninitializeTaskHandlers
(b *ledgerforgeInstance, mux *asynq.ServeMux)
cmd/workers.go:392
↓ 1 callersFunctioninitializeTokenizationService
initializeTokenizationService creates and configures the tokenization service
ledgerforge.go:91
↓ 1 callersFunctioninitializeTypeSense
(ctx context.Context, cfg *config.Configuration)
cmd/server.go:206
↓ 1 callersFunctioninitializeWebhookQueues
()
cmd/workers.go:312
↓ 1 callersFunctioninitializeWebhookTaskHandlers
(b *ledgerforgeInstance, mux *asynq.ServeMux)
cmd/workers.go:409
↓ 1 callersFunctioninitializeWebhookWorkerServer
(conf *config.Configuration, queues map[string]int)
cmd/workers.go:326
↓ 1 callersFunctioninitializeWorkerServer
(conf *config.Configuration, queues map[string]int)
cmd/workers.go:348
↓ 1 callersFunctioninsertLineageOutboxesInTx
(ctx context.Context, tx *sql.Tx, outboxes []*model.LineageOutbox)
database/lineage.go:170
↓ 1 callersFunctionisDigit
(c byte)
internal/filter/sql_json.go:183
↓ 1 callersFunctionisReservedParam
(param string)
internal/filter/reserved.go:20
↓ 1 callersFunctionjoinStrings
Helper function
internal/filter/filter_test.go:987
↓ 1 callersMethodloadBalancesForQueuedBatch
(ctx context.Context, balanceIDs []string)
transaction.go:1454
↓ 1 callersMethodloadQueuedTransactionsForCoalescingScope
(ctx context.Context, leader *model.Transaction, scope queuedCoalescingScope, limit int)
transaction.go:1373
↓ 1 callersMethodloadReconciliationProgress
loadReconciliationProgress retrieves the progress of a reconciliation process. Parameters: - ctx: The context controlling the request. - reconciliatio
reconciliation.go:320
↓ 1 callersFunctionlogger
()
config/config.go:492
↓ 1 callersFunctionlooksLikeCsv
(text)
tests/loadtest/tools/dashboard/app.js:1359
↓ 1 callersFunctionlooksLikeNdjson
(text)
tests/loadtest/tools/dashboard/app.js:1364
↓ 1 callersFunctionlooks_like_csv
(text: str)
tests/loadtest/tools/dashboard_parser.py:395
↓ 1 callersFunctionlooks_like_ndjson
(text: str)
tests/loadtest/tools/dashboard_parser.py:400
↓ 1 callersFunctionmain
()
tests/loadtest/tools/dashboard.py:126
↓ 1 callersMethodmanyToOne
manyToOne handles the core logic of many-to-one reconciliation. It groups external transactions and processes them in batches, comparing them to inter
reconciliation.go:772
↓ 1 callersMethodmatchSingleTransaction
matchSingleTransaction attempts to match a single transaction with a group of transactions based on matching rules. If a match is found, it sends the
reconciliation.go:867
↓ 1 callersMethodmatchesCurrency
matchesCurrency compares currency values, handling special cases like "MIXED" for group transactions. Parameters: - externalValue: The currency value
reconciliation.go:1371
↓ 1 callersMethodmatchesGroup
matchesGroup compares a group of internal transactions with a single external transaction using matching rules. If a match is found, it returns true;
reconciliation.go:1060
↓ 1 callersMethodmatchesGroupAmount
matchesGroupAmount compares the amount of a single external transaction with the total amount of a grouped set of internal transactions. Parameters: -
reconciliation.go:1385
↓ 1 callersMethodmatchesGroupDate
matchesGroupDate compares the date of a single external transaction with the earliest date in a group of internal transactions. Parameters: - external
reconciliation.go:1404
↓ 1 callersFunctionmerge_related_runs
(runs: list[dict[str, Any]])
tests/loadtest/tools/dashboard_parser.py:38
↓ 1 callersFunctionmerge_summary_with_ndjson
(summary: dict[str, Any], ndjson_run: dict[str, Any])
tests/loadtest/tools/dashboard_parser.py:103
↓ 1 callersFunctionmigrateCommands
migrateCommands creates the root command for migration-related operations.
cmd/migrate.go:34
↓ 1 callersFunctionmigrateDownCommands
migrateDownCommands creates the command for rolling back migrations.
cmd/migrate.go:89
↓ 1 callersFunctionmigrateTypeSenseSchema
* migrateTypeSenseSchema ensures that the necessary TypeSense schema is migrated for all required collections. It takes a TypesenseClient and a contex
cmd/server.go:95
↓ 1 callersFunctionmigrateUpCommands
migrateUpCommands creates the command for applying migrations.
cmd/migrate.go:48
↓ 1 callersFunctionnewLoggerProvider
()
internal/traces/otel.go:182
↓ 1 callersFunctionnewPropagator
()
internal/traces/otel.go:124
↓ 1 callersFunctionnewRedisCache
newRedisCache sets up a Redis-backed cache with local caching (TinyLFU). Parameters: - addresses: The Redis server addresses to connect to. Returns a
internal/cache/cache.go:98
↓ 1 callersFunctionnewResource
newResource creates a shared OTel resource with the service name.
internal/traces/otel.go:116
↓ 1 callersFunctionnewTestLogger
(t *testing.T)
transaction_test.go:4733
↓ 1 callersFunctionnewTestLogger
(t *testing.T)
api/transaction_api_test.go:75
↓ 1 callersFunctionnewTraceExporter
(ctx context.Context)
internal/traces/otel.go:194
↓ 1 callersFunctionnewTraceProvider
(ctx context.Context, res *resource.Resource)
internal/traces/otel.go:131
↓ 1 callersFunctionnormalizeCsvRun
(fileName, text)
tests/loadtest/tools/dashboard/app.js:379
↓ 1 callersFunctionnormalizeNdjsonRun
(fileName, text)
tests/loadtest/tools/dashboard/app.js:431
↓ 1 callersFunctionnormalizeSummaryRun
(fileName, payload)
tests/loadtest/tools/dashboard/app.js:315
↓ 1 callersMethodoneToMany
oneToMany performs the core logic for one-to-many reconciliation. Parameters are similar to `manyToOne`, but it processes transactions in reverse (one
reconciliation.go:898
↓ 1 callersMethodoverrideLedgerAndIdentity
overrideLedgerAndIdentity overrides the ledger and identity details of the given account based on the balance information. It fetches the balance by i
account.go:108
↓ 1 callersFunctionparseAndStoreData
(ctx context.Context, uploadID, source string, reader io.Reader, fileType string, store StoreFunc)
internal/files/files.go:130
↓ 1 callersFunctionparseEnvBool
(key string)
tests/loadtest/tools/queue_benchmark.go:677
↓ 1 callersFunctionparseExternalTransaction
(record []string, columnMap map[string]int, source string)
internal/files/files.go:399
↓ 1 callersFunctionparseFixedAmount
parseFixedAmount parses a fixed amount from a distribution
model/transaction.go:174
↓ 1 callersFunctionparseFlags
()
tests/loadtest/tools/queue_benchmark.go:179
↓ 1 callersFunctionparseFloat
(s string)
internal/files/files.go:502
↓ 1 callersFunctionparseMetricName
(metricName)
tests/loadtest/tools/dashboard/app.js:1212
↓ 1 callersFunctionparseTime
(s string)
internal/files/files.go:510
↓ 1 callersFunctionparseUploadedFile
(fileName, text)
tests/loadtest/tools/dashboard/app.js:286
↓ 1 callersFunctionparse_args
()
tests/loadtest/tools/dashboard.py:107
↓ 1 callersFunctionparse_csv
(name: str, text: str)
tests/loadtest/tools/dashboard_parser.py:236
↓ 1 callersFunctionparse_file
(path: Path, root: Path)
tests/loadtest/tools/dashboard_parser.py:121
↓ 1 callersFunctionparse_ndjson
(name: str, text: str)
tests/loadtest/tools/dashboard_parser.py:283
↓ 1 callersFunctionparse_summary
(name: str, payload: dict[str, Any])
tests/loadtest/tools/dashboard_parser.py:169
↓ 1 callersFunctionparse_text
(name: str, text: str)
tests/loadtest/tools/dashboard_parser.py:147
↓ 1 callersMethodpartialMatch
partialMatch compares two strings and checks if they match within a certain allowable drift, using Levenshtein distance. Parameters: - str1, str2: The
reconciliation.go:1345
↓ 1 callersFunctionpayload_etag
(payload: Any)
tests/loadtest/tools/dashboard_parser.py:524
↓ 1 callersFunctionpercentileStats
(values)
tests/loadtest/tools/dashboard/app.js:1297
↓ 1 callersMethodpersistQueuedTransactionBatch
persistQueuedTransactionBatch acquires the balance-set lock, prepares the batch in memory, commits the final state atomically, and dispatches post-com
transaction.go:949
↓ 1 callersMethodpersistQueuedTransactionBatchLocked
persistQueuedTransactionBatchLocked prepares every transaction against the shared in-memory balance set and persists the final balance and transaction
transaction.go:998
↓ 1 callersMethodpersistSingleTransactionExecutionWork
persistSingleTransactionExecutionWork atomically persists one prepared transaction, its updated balances, and any lineage outbox using the shared exec
transaction.go:1279
↓ 1 callersFunctionpollForAggregateDebitBalance
pollForAggregateDebitBalance polls until the aggregate balance's DebitBalance reaches the expected value
lineage_integration_test.go:97
↓ 1 callersFunctionpollForShadowCreditBalance
pollForShadowCreditBalance polls until the shadow balance's CreditBalance reaches the expected value
lineage_integration_test.go:66
↓ 1 callersMethodpopulateLineageProviders
populateLineageProviders populates the provider breakdown in a balance lineage. Parameters: - lineage *BalanceLineage: The lineage to populate. - map
lineage.go:1088
↓ 1 callersMethodpostBalanceActions
postBalanceActions performs some actions after a balance has been created. It starts a tracing span, sends the balance to the search index queue, and
balance.go:199
↓ 1 callersMethodpostIdentityActions
postIdentityActions performs actions after an identity has been created. It sends the newly created identity to the search index queue and sends a web
identity.go:35
↓ 1 callersMethodpostReconciliationActions
postReconciliationActions queues the indexing of reconciliation data in the background. This allows the reconciliation to be indexed without blocking
reconciliation.go:122
↓ 1 callersFunctionpreRun
preRun sets up the configuration and initializes the LedgerForge instance before running any command. It ensures that the configuration is loaded, and
cmd/main.go:54
↓ 1 callersFunctionprepareAccountQueries
prepareAccountQueries constructs an SQL query for retrieving accounts, including optional related entities such as balance, identity, and ledger if sp
database/account.go:113
↓ 1 callersMethodprepareDestinationLineageBalances
prepareDestinationLineageBalances pre-creates destination shadow and aggregate balances for all providers. This is called BEFORE acquiring locks to av
lineage.go:478
↓ 1 callersFunctionprepareQueries
Prepares a dynamic SQL query based on the fields to be included. This query fetches balance details, including optional joins for identity and ledger.
database/balance.go:60
↓ 1 callersMethodprepareQueuedBatchTransaction
prepareQueuedBatchTransaction performs the per-transaction work inside a coalesced batch: hooks, reference validation, in-memory balance application,
transaction.go:1061
↓ 1 callersFunctionprepareRefundTransaction
prepareRefundTransaction creates and configures a new transaction object for the refund.
transaction.go:2314
↓ 1 callersMethodprepareTransactionOutbox
(ctx context.Context, transaction *model.Transaction, sourceBalance, destinationBalance *model.Balance)
transaction.go:1298
↓ 1 callersMethodprocess
process handles individual transaction processing, applying the reconciliation logic and recording results. It also updates internal transaction metad
reconciliation.go:454
↓ 1 callersMethodprocessAllocations
processAllocations processes fund allocations by queuing release and receive transactions. Parameters: - ctx context.Context: The context for the ope
lineage.go:561
↓ 1 callersMethodprocessBatch
processBatch performs one periodic stuck-queue recovery pass using the configured threshold.
queue_recovery.go:122
↓ 1 callersMethodprocessBatch
processBatch claims and processes a batch of pending outbox entries.
lineage_worker.go:164
↓ 1 callersFunctionprocessCSVRowsParallel
Parallel CSV processing with worker pool
internal/files/files.go:252
↓ 1 callersMethodprocessDestinationLineage
processDestinationLineage processes lineage tracking for the destination balance when it also tracks fund lineage. Uses pre-created destination balanc
lineage.go:636
↓ 1 callersMethodprocessEntry
processEntry processes a single outbox entry.
lineage_worker.go:192
↓ 1 callersFunctionprocessFixedDistributions
processFixedDistributions handles the first pass: fixed amount distributions
model/transaction.go:148
↓ 1 callersFunctionprocessLeftDistribution
processLeftDistribution handles the "left" distribution type
model/transaction.go:284
↓ 1 callersMethodprocessLineage
processLineage handles fund lineage tracking for a transaction. It processes both credit (incoming funds with provider tracking) and debit (fund alloc
lineage.go:126
↓ 1 callersMethodprocessLineageCredit
processLineageCredit processes a credit transaction for fund lineage tracking. It creates shadow balances and queues a shadow transaction to track the
lineage.go:237
← previousnext →801–900 of 1,908, ranked by callers