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
Function
init
()
tests/loadtest/tools/dashboard/app.js:35
↓ 1 callers
Function
initializeHTTPClient
initializeHTTPClient creates and configures the HTTP client for webhook requests
ledgerforge.go:101
↓ 1 callers
Function
initializeHotQueues
()
cmd/workers.go:297
↓ 1 callers
Function
initializeHotWorkerServer
(conf *config.Configuration, queues map[string]int)
cmd/workers.go:370
↓ 1 callers
Function
initializeOpenTelemetry
(ctx context.Context)
cmd/server.go:198
↓ 1 callers
Function
initializePostHog
(cfg *config.Configuration)
cmd/server.go:238
↓ 1 callers
Function
initializeQueues
()
cmd/workers.go:280
↓ 1 callers
Method
initializeReconciliationProgress
initializeReconciliationProgress initializes or retrieves the progress of a reconciliation. If no progress exists, it creates a new progress entry. Pa
reconciliation.go:390
↓ 1 callers
Function
initializeRedisClients
initializeRedisClients sets up both the Redis client and Asynq client
ledgerforge.go:65
↓ 1 callers
Function
initializeRouter
(b *ledgerforgeInstance)
cmd/server.go:182
↓ 1 callers
Function
initializeTaskHandlers
(b *ledgerforgeInstance, mux *asynq.ServeMux)
cmd/workers.go:392
↓ 1 callers
Function
initializeTokenizationService
initializeTokenizationService creates and configures the tokenization service
ledgerforge.go:91
↓ 1 callers
Function
initializeTypeSense
(ctx context.Context, cfg *config.Configuration)
cmd/server.go:206
↓ 1 callers
Function
initializeWebhookQueues
()
cmd/workers.go:312
↓ 1 callers
Function
initializeWebhookTaskHandlers
(b *ledgerforgeInstance, mux *asynq.ServeMux)
cmd/workers.go:409
↓ 1 callers
Function
initializeWebhookWorkerServer
(conf *config.Configuration, queues map[string]int)
cmd/workers.go:326
↓ 1 callers
Function
initializeWorkerServer
(conf *config.Configuration, queues map[string]int)
cmd/workers.go:348
↓ 1 callers
Function
insertLineageOutboxesInTx
(ctx context.Context, tx *sql.Tx, outboxes []*model.LineageOutbox)
database/lineage.go:170
↓ 1 callers
Function
isDigit
(c byte)
internal/filter/sql_json.go:183
↓ 1 callers
Function
isReservedParam
(param string)
internal/filter/reserved.go:20
↓ 1 callers
Function
joinStrings
Helper function
internal/filter/filter_test.go:987
↓ 1 callers
Method
loadBalancesForQueuedBatch
(ctx context.Context, balanceIDs []string)
transaction.go:1454
↓ 1 callers
Method
loadQueuedTransactionsForCoalescingScope
(ctx context.Context, leader *model.Transaction, scope queuedCoalescingScope, limit int)
transaction.go:1373
↓ 1 callers
Method
loadReconciliationProgress
loadReconciliationProgress retrieves the progress of a reconciliation process. Parameters: - ctx: The context controlling the request. - reconciliatio
reconciliation.go:320
↓ 1 callers
Function
logger
()
config/config.go:492
↓ 1 callers
Function
looksLikeCsv
(text)
tests/loadtest/tools/dashboard/app.js:1359
↓ 1 callers
Function
looksLikeNdjson
(text)
tests/loadtest/tools/dashboard/app.js:1364
↓ 1 callers
Function
looks_like_csv
(text: str)
tests/loadtest/tools/dashboard_parser.py:395
↓ 1 callers
Function
looks_like_ndjson
(text: str)
tests/loadtest/tools/dashboard_parser.py:400
↓ 1 callers
Function
main
()
tests/loadtest/tools/dashboard.py:126
↓ 1 callers
Method
manyToOne
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 callers
Method
matchSingleTransaction
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 callers
Method
matchesCurrency
matchesCurrency compares currency values, handling special cases like "MIXED" for group transactions. Parameters: - externalValue: The currency value
reconciliation.go:1371
↓ 1 callers
Method
matchesGroup
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 callers
Method
matchesGroupAmount
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 callers
Method
matchesGroupDate
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 callers
Function
merge_related_runs
(runs: list[dict[str, Any]])
tests/loadtest/tools/dashboard_parser.py:38
↓ 1 callers
Function
merge_summary_with_ndjson
(summary: dict[str, Any], ndjson_run: dict[str, Any])
tests/loadtest/tools/dashboard_parser.py:103
↓ 1 callers
Function
migrateCommands
migrateCommands creates the root command for migration-related operations.
cmd/migrate.go:34
↓ 1 callers
Function
migrateDownCommands
migrateDownCommands creates the command for rolling back migrations.
cmd/migrate.go:89
↓ 1 callers
Function
migrateTypeSenseSchema
* 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 callers
Function
migrateUpCommands
migrateUpCommands creates the command for applying migrations.
cmd/migrate.go:48
↓ 1 callers
Function
newLoggerProvider
()
internal/traces/otel.go:182
↓ 1 callers
Function
newPropagator
()
internal/traces/otel.go:124
↓ 1 callers
Function
newRedisCache
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 callers
Function
newResource
newResource creates a shared OTel resource with the service name.
internal/traces/otel.go:116
↓ 1 callers
Function
newTestLogger
(t *testing.T)
transaction_test.go:4733
↓ 1 callers
Function
newTestLogger
(t *testing.T)
api/transaction_api_test.go:75
↓ 1 callers
Function
newTraceExporter
(ctx context.Context)
internal/traces/otel.go:194
↓ 1 callers
Function
newTraceProvider
(ctx context.Context, res *resource.Resource)
internal/traces/otel.go:131
↓ 1 callers
Function
normalizeCsvRun
(fileName, text)
tests/loadtest/tools/dashboard/app.js:379
↓ 1 callers
Function
normalizeNdjsonRun
(fileName, text)
tests/loadtest/tools/dashboard/app.js:431
↓ 1 callers
Function
normalizeSummaryRun
(fileName, payload)
tests/loadtest/tools/dashboard/app.js:315
↓ 1 callers
Method
oneToMany
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 callers
Method
overrideLedgerAndIdentity
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 callers
Function
parseAndStoreData
(ctx context.Context, uploadID, source string, reader io.Reader, fileType string, store StoreFunc)
internal/files/files.go:130
↓ 1 callers
Function
parseEnvBool
(key string)
tests/loadtest/tools/queue_benchmark.go:677
↓ 1 callers
Function
parseExternalTransaction
(record []string, columnMap map[string]int, source string)
internal/files/files.go:399
↓ 1 callers
Function
parseFixedAmount
parseFixedAmount parses a fixed amount from a distribution
model/transaction.go:174
↓ 1 callers
Function
parseFlags
()
tests/loadtest/tools/queue_benchmark.go:179
↓ 1 callers
Function
parseFloat
(s string)
internal/files/files.go:502
↓ 1 callers
Function
parseMetricName
(metricName)
tests/loadtest/tools/dashboard/app.js:1212
↓ 1 callers
Function
parseTime
(s string)
internal/files/files.go:510
↓ 1 callers
Function
parseUploadedFile
(fileName, text)
tests/loadtest/tools/dashboard/app.js:286
↓ 1 callers
Function
parse_args
()
tests/loadtest/tools/dashboard.py:107
↓ 1 callers
Function
parse_csv
(name: str, text: str)
tests/loadtest/tools/dashboard_parser.py:236
↓ 1 callers
Function
parse_file
(path: Path, root: Path)
tests/loadtest/tools/dashboard_parser.py:121
↓ 1 callers
Function
parse_ndjson
(name: str, text: str)
tests/loadtest/tools/dashboard_parser.py:283
↓ 1 callers
Function
parse_summary
(name: str, payload: dict[str, Any])
tests/loadtest/tools/dashboard_parser.py:169
↓ 1 callers
Function
parse_text
(name: str, text: str)
tests/loadtest/tools/dashboard_parser.py:147
↓ 1 callers
Method
partialMatch
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 callers
Function
payload_etag
(payload: Any)
tests/loadtest/tools/dashboard_parser.py:524
↓ 1 callers
Function
percentileStats
(values)
tests/loadtest/tools/dashboard/app.js:1297
↓ 1 callers
Method
persistQueuedTransactionBatch
persistQueuedTransactionBatch acquires the balance-set lock, prepares the batch in memory, commits the final state atomically, and dispatches post-com
transaction.go:949
↓ 1 callers
Method
persistQueuedTransactionBatchLocked
persistQueuedTransactionBatchLocked prepares every transaction against the shared in-memory balance set and persists the final balance and transaction
transaction.go:998
↓ 1 callers
Method
persistSingleTransactionExecutionWork
persistSingleTransactionExecutionWork atomically persists one prepared transaction, its updated balances, and any lineage outbox using the shared exec
transaction.go:1279
↓ 1 callers
Function
pollForAggregateDebitBalance
pollForAggregateDebitBalance polls until the aggregate balance's DebitBalance reaches the expected value
lineage_integration_test.go:97
↓ 1 callers
Function
pollForShadowCreditBalance
pollForShadowCreditBalance polls until the shadow balance's CreditBalance reaches the expected value
lineage_integration_test.go:66
↓ 1 callers
Method
populateLineageProviders
populateLineageProviders populates the provider breakdown in a balance lineage. Parameters: - lineage *BalanceLineage: The lineage to populate. - map
lineage.go:1088
↓ 1 callers
Method
postBalanceActions
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 callers
Method
postIdentityActions
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 callers
Method
postReconciliationActions
postReconciliationActions queues the indexing of reconciliation data in the background. This allows the reconciliation to be indexed without blocking
reconciliation.go:122
↓ 1 callers
Function
preRun
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 callers
Function
prepareAccountQueries
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 callers
Method
prepareDestinationLineageBalances
prepareDestinationLineageBalances pre-creates destination shadow and aggregate balances for all providers. This is called BEFORE acquiring locks to av
lineage.go:478
↓ 1 callers
Function
prepareQueries
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 callers
Method
prepareQueuedBatchTransaction
prepareQueuedBatchTransaction performs the per-transaction work inside a coalesced batch: hooks, reference validation, in-memory balance application,
transaction.go:1061
↓ 1 callers
Function
prepareRefundTransaction
prepareRefundTransaction creates and configures a new transaction object for the refund.
transaction.go:2314
↓ 1 callers
Method
prepareTransactionOutbox
(ctx context.Context, transaction *model.Transaction, sourceBalance, destinationBalance *model.Balance)
transaction.go:1298
↓ 1 callers
Method
process
process handles individual transaction processing, applying the reconciliation logic and recording results. It also updates internal transaction metad
reconciliation.go:454
↓ 1 callers
Method
processAllocations
processAllocations processes fund allocations by queuing release and receive transactions. Parameters: - ctx context.Context: The context for the ope
lineage.go:561
↓ 1 callers
Method
processBatch
processBatch performs one periodic stuck-queue recovery pass using the configured threshold.
queue_recovery.go:122
↓ 1 callers
Method
processBatch
processBatch claims and processes a batch of pending outbox entries.
lineage_worker.go:164
↓ 1 callers
Function
processCSVRowsParallel
Parallel CSV processing with worker pool
internal/files/files.go:252
↓ 1 callers
Method
processDestinationLineage
processDestinationLineage processes lineage tracking for the destination balance when it also tracks fund lineage. Uses pre-created destination balanc
lineage.go:636
↓ 1 callers
Method
processEntry
processEntry processes a single outbox entry.
lineage_worker.go:192
↓ 1 callers
Function
processFixedDistributions
processFixedDistributions handles the first pass: fixed amount distributions
model/transaction.go:148
↓ 1 callers
Function
processLeftDistribution
processLeftDistribution handles the "left" distribution type
model/transaction.go:284
↓ 1 callers
Method
processLineage
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 callers
Method
processLineageCredit
processLineageCredit processes a credit transaction for fund lineage tracking. It creates shadow balances and queues a shadow transaction to track the
lineage.go:237
← previous
next →
801–900 of 1,908, ranked by callers