MCPcopy Create free account

hub / github.com/devaccuracy/ledgerforge / functions

Functions1,908 in github.com/devaccuracy/ledgerforge

MethodGetAllLedgers
GetAllLedgers retrieves all ledger records in the system. It fetches the ledger records and responds with the list of ledgers. Supports advanced filte
api/ledger.go:104
MethodGetAllLedgersWithFilter
GetAllLedgersWithFilter retrieves ledgers from the datasource using advanced filters. It returns a slice of Ledger models and an error if the operatio
ledger.go:91
MethodGetAllLedgersWithFilter
GetAllLedgersWithFilter retrieves ledgers with advanced filtering support. It delegates to GetAllLedgersWithFilterAndOptions with nil options. Parame
database/ledger.go:223
MethodGetAllLedgersWithFilter
(ctx context.Context, filters *filter.QueryFilterSet, limit, offset int)
database/mocks/repo_mocks.go:212
MethodGetAllLedgersWithFilterAndOptions
GetAllLedgersWithFilterAndOptions retrieves ledgers with filters, sorting, and optional count. Parameters: - ctx: Context for the operation. - filter
ledger.go:108
MethodGetAllLedgersWithFilterAndOptions
(ctx context.Context, filters *filter.QueryFilterSet, opts *filter.QueryOptions, limit, offset int)
database/mocks/repo_mocks.go:220
MethodGetAllMonitors
()
database/mocks/repo_mocks.go:402
MethodGetAllTransactions
(ctx context.Context, limit, offset int)
database/mocks/repo_mocks.go:103
MethodGetAllTransactions
GetAllTransactions retrieves all transactions with pagination and optional filtering. Supports advanced filtering via query parameters in the format:
api/transactions.go:277
MethodGetAllTransactionsWithFilter
GetAllTransactionsWithFilter retrieves transactions using advanced filters. It starts a tracing span, fetches transactions matching the filter criteri
transaction.go:2173
MethodGetAllTransactionsWithFilter
GetAllTransactionsWithFilter retrieves transactions with advanced filtering support. It delegates to GetAllTransactionsWithFilterAndOptions with nil o
database/transaction.go:1732
MethodGetAllTransactionsWithFilter
(ctx context.Context, filters *filter.QueryFilterSet, limit, offset int)
database/mocks/repo_mocks.go:108
MethodGetAllTransactionsWithFilterAndOptions
GetAllTransactionsWithFilterAndOptions retrieves transactions with advanced filters, sorting, and optional count.
transaction.go:2188
MethodGetAllTransactionsWithFilterAndOptions
(ctx context.Context, filters *filter.QueryFilterSet, opts *filter.QueryOptions, limit, offset int)
database/mocks/repo_mocks.go:116
MethodGetBalance
GetBalance retrieves a balance record by its ID. It extracts the ID from the route parameters and the 'include' query parameter to fetch additional re
api/balance.go:73
MethodGetBalanceAtTime
(ctx context.Context, balanceID string, targetTime time.Time, fromSource bool)
database/mocks/repo_mocks.go:333
MethodGetBalanceAtTime
GetBalanceAtTime retrieves a balance's state at a specific point in time. It extracts the balance ID from the route parameters and the timestamp from
api/balance.go:394
MethodGetBalanceByID
(id string, include []string, withQueued bool)
database/mocks/repo_mocks.go:270
MethodGetBalanceByIDLite
(id string)
database/mocks/repo_mocks.go:275
MethodGetBalanceByIndicator
(indicator, currency string)
database/mocks/repo_mocks.go:318
MethodGetBalanceByIndicator
GetBalanceByIndicator retrieves a balance by its indicator and currency. It extracts the indicator and currency from the route parameters. If either p
api/balance.go:453
MethodGetBalanceLineage
(c *gin.Context)
api/balance.go:503
MethodGetBalanceMonitor
GetBalanceMonitor retrieves a balance monitor record by its ID. It extracts the ID from the route parameters. If the ID is missing or there's an error
api/balance.go:236
MethodGetBalanceMonitors
(balanceID string)
database/mocks/repo_mocks.go:407
MethodGetBalanceMonitorsByBalanceID
GetBalanceMonitorsByBalanceID retrieves all balance monitors associated with a specific balance ID. It extracts the balance ID from the route paramete
api/balance.go:282
MethodGetBalances
GetBalances retrieves a list of balance records with pagination. It extracts the 'limit' and 'offset' query parameters to control pagination, and the
api/balance.go:110
MethodGetBalancesByIDsLite
(ctx context.Context, ids []string)
database/mocks/repo_mocks.go:280
MethodGetDetokenizedIdentity
GetDetokenizedIdentity returns a copy of the identity with all fields detokenized. Note: This does not modify the stored identity. Parameters: - iden
identity.go:338
MethodGetExistingTransactionReferences
(ctx context.Context, references []string)
database/mocks/repo_mocks.go:90
MethodGetExternalTransactionsPaginated
(ctx context.Context, uploadID string, batchSize int, offset int64)
database/mocks/repo_mocks.go:516
MethodGetHook
GetHook retrieves a specific webhook by ID.
api/hooks.go:45
MethodGetIdentityByID
(id string)
database/mocks/repo_mocks.go:429
MethodGetInflightTransactionsByParentID
(ctx context.Context, parentTransactionID string, batchSize int, offset int64)
database/mocks/repo_mocks.go:138
MethodGetLedger
GetLedger retrieves a ledger record by its ID. It extracts the ID from the route parameters and fetches the ledger record. If the ID is missing or the
api/ledger.go:71
MethodGetLedgerByID
(id string)
database/mocks/repo_mocks.go:232
MethodGetLineageMappingByProvider
GetLineageMappingByProvider retrieves a specific lineage mapping for a balance and provider.
database/lineage.go:95
MethodGetLineageMappingByProvider
(ctx context.Context, balanceID, provider string)
database/mocks/repo_mocks.go:628
MethodGetLineageMappings
GetLineageMappings retrieves all lineage mappings for a given balance ID.
database/lineage.go:57
MethodGetLineageMappings
(ctx context.Context, balanceID string)
database/mocks/repo_mocks.go:623
MethodGetMatchesByReconciliationID
Records a match in reconciliation
database/repository.go:158
MethodGetMatchesByReconciliationID
(ctx context.Context, reconciliationID string)
database/mocks/repo_mocks.go:511
MethodGetMatchingRule
(ctx context.Context, id string)
database/mocks/repo_mocks.go:536
MethodGetMatchingRules
(ctx context.Context)
database/mocks/repo_mocks.go:531
MethodGetMonitorByID
(id string)
database/mocks/repo_mocks.go:397
MethodGetOutboxByTransactionID
Marks an outbox entry as failed
database/repository.go:194
MethodGetOutboxByTransactionID
GetOutboxByTransactionID retrieves an outbox entry by its transaction ID.
database/lineage.go:382
MethodGetOutboxByTransactionID
(ctx context.Context, transactionID string)
database/mocks/repo_mocks.go:671
MethodGetQueuedTransactionsForCoalescing
GetQueuedTransactionsForCoalescing retrieves QUEUED transactions for the exact same pair that are ready to be coalesced because they do not yet have a
database/transaction.go:1972
MethodGetQueuedTransactionsForCoalescing
(ctx context.Context, source, destination, currency, excludeTransactionID string, createdAtOrAfter time.Time,
database/mocks/repo_mocks.go:171
MethodGetQueuedTransactionsForDestinationCoalescing
(ctx context.Context, destination, currency, excludeTransactionID string, createdAtOrAfter time.Time, limit in
database/transaction.go:2049
MethodGetQueuedTransactionsForDestinationCoalescing
(ctx context.Context, destination, currency, excludeTransactionID string, createdAtOrAfter time.Time, limit in
database/mocks/repo_mocks.go:187
MethodGetQueuedTransactionsForSourceCoalescing
(ctx context.Context, source, currency, excludeTransactionID string, createdAtOrAfter time.Time, limit int)
database/transaction.go:2011
MethodGetQueuedTransactionsForSourceCoalescing
(ctx context.Context, source, currency, excludeTransactionID string, createdAtOrAfter time.Time, limit int)
database/mocks/repo_mocks.go:179
MethodGetReconciliation
(ctx context.Context, id string)
database/mocks/repo_mocks.go:481
MethodGetReconciliation
GetReconciliation retrieves details about a specific reconciliation by its ID. Parameters: - c: The Gin context containing the request and response.
api/reconciliation_api.go:157
MethodGetReconciliationsByUploadID
Updates the status of a reconciliation
database/repository.go:156
MethodGetReconciliationsByUploadID
(ctx context.Context, uploadID string)
database/mocks/repo_mocks.go:491
MethodGetRefundableTransactionsByParentID
(ctx context.Context, parentTransactionID string, batchSize int, offset int64)
database/mocks/repo_mocks.go:143
MethodGetReindexProgress
GetReindexProgress returns the current progress of the reindex operation. Parameters: - c: The Gin context containing the request and response. Resp
api/reindex.go:102
MethodGetSourceDestination
Updates multiple balances
database/repository.go:103
MethodGetSourceDestination
(sourceId, destinationId string)
database/mocks/repo_mocks.go:328
MethodGetStuckQueuedTransactions
GetStuckQueuedTransactions retrieves QUEUED transactions that are older than the threshold and have no child transactions, indicating they were never
database/transaction.go:1898
MethodGetStuckQueuedTransactions
(ctx context.Context, threshold time.Duration, batchSize int)
database/mocks/repo_mocks.go:163
MethodGetTokenizedFields
GetTokenizedFields returns a list of fields that are currently tokenized for an identity. Parameters: - c: The Gin context containing the request and
api/identity.go:402
MethodGetTotalCommittedTransactions
(ctx context.Context, parentID string)
database/mocks/repo_mocks.go:128
MethodGetTransaction
(ctx context.Context, id string)
database/mocks/repo_mocks.go:70
MethodGetTransaction
GetTransaction retrieves a transaction by its ID. It returns the transaction details if found. If the ID is not provided or an error occurs while retr
api/transactions.go:217
MethodGetTransactionByRef
(ctx context.Context, reference string)
database/mocks/repo_mocks.go:80
MethodGetTransactionByRef
GetTransactionByRef retrieves a transaction by its reference. It returns the transaction details if found. If the reference is not provided or an erro
api/transactions.go:244
MethodGetTransactionLineage
(c *gin.Context)
api/transactions.go:495
MethodGetTransactionsByCriteria
(ctx context.Context, minAmount, maxAmount *float64, currency *string, minDate, maxDate *time.Time, limit int,
database/mocks/repo_mocks.go:611
MethodGetTransactionsByParent
(ctx context.Context, parentID string, limit int, offset int64)
database/mocks/repo_mocks.go:153
MethodGetTransactionsByShadowFor
(ctx context.Context, parentTransactionID string)
database/transaction.go:1655
MethodGetTransactionsByShadowFor
(ctx context.Context, parentTransactionID string)
database/mocks/repo_mocks.go:158
MethodGetTransactionsPaginated
(ctx context.Context, id string, batchSize int, offset int64)
database/mocks/repo_mocks.go:133
MethodGroupTransactions
(ctx context.Context, groupCriteria string, batchSize int, offset int64)
database/mocks/repo_mocks.go:148
MethodHasPendingCreditOutbox
HasPendingCreditOutbox checks if there are pending credit outbox entries for a given balance. This is used to detect race conditions where a debit is
database/lineage.go:433
MethodHasPendingCreditOutbox
(ctx context.Context, balanceID string)
database/mocks/repo_mocks.go:679
MethodHotQueueName
()
internal/hotpairs/hotpairs.go:70
MethodInfo
(args ...interface{})
api/transaction_api_test.go:83
MethodInsertLineageOutbox
InsertLineageOutbox inserts a lineage outbox entry directly (not within a transaction). Use this for queueing work like shadow commit/void that happen
database/lineage.go:252
MethodInsertLineageOutbox
(ctx context.Context, outbox *model.LineageOutbox)
database/mocks/repo_mocks.go:648
MethodInsertLineageOutboxInTx
Deletes a lineage mapping Outbox methods for atomic lineage processing
database/repository.go:189
MethodInsertLineageOutboxInTx
Lineage Outbox methods
database/mocks/repo_mocks.go:643
MethodInstantReconciliation
InstantReconciliation initiates a reconciliation process with externally provided transactions without requiring a prior file upload. It processes the
api/reconciliation_api.go:108
MethodIsParentTransactionVoid
(ctx context.Context, parentID string)
database/mocks/repo_mocks.go:75
MethodIsRunning
IsRunning reports whether the recovery processor is currently active.
queue_recovery.go:96
MethodIsTransactionRefunded
(ctx context.Context, transaction *model.Transaction)
database/mocks/repo_mocks.go:601
MethodListAPIKeys
(ctx context.Context, ownerID string)
database/mocks/repo_mocks.go:576
MethodListAPIKeys
ListAPIKeys lists all API keys for the authenticated user Parameters: - c: The Gin context containing the request and response Responses: - 200 OK:
api/apikeys.go:43
MethodListHooks
ListHooks retrieves all hooks of a specific type.
api/hooks.go:57
MethodListMatchingRules
ListMatchingRules retrieves all matching rules. Parameters: - ctx: The context for managing the request. Returns a list of matching rules, or an error
reconciliation.go:1190
MethodLoadReconciliationProgress
(ctx context.Context, reconciliationID string)
database/mocks/repo_mocks.go:556
MethodMakeRedisClient
MakeRedisClient returns the Redis client interface, allowing compatibility with other packages or tools. Returns: - interface{}: The Redis client int
internal/redis-db/redisdb.go:209
MethodMarkOutboxCompleted
MarkOutboxCompleted marks an outbox entry as completed.
database/lineage.go:352
MethodMarkOutboxCompleted
(ctx context.Context, id int64)
database/mocks/repo_mocks.go:661
MethodMarkOutboxFailed
MarkOutboxFailed marks an outbox entry as failed and increments the attempt counter. If attempts exceed max_attempts, the status becomes 'failed', oth
database/lineage.go:366
MethodMarkOutboxFailed
(ctx context.Context, id int64, errMsg string)
database/mocks/repo_mocks.go:666
MethodMultiSearch
MultiSearch performs a multi-search operation across collections.
search.go:40
MethodMultiSearch
Remove the incorrect MultiSearch method and replace with this:
internal/search/search.go:225
← previousnext →1,101–1,200 of 1,908, ranked by callers