MCPcopy Create free account

hub / github.com/devaccuracy/ledgerforge / functions

Functions1,908 in github.com/devaccuracy/ledgerforge

MethodMultiSearch
MultiSearch performs a multi-search query. It binds the incoming JSON request to a MultiSearchParameter object, executes the multi-search query, and r
api/api.go:221
FunctionNewBackupManager
NewBackupManager initializes a BackupManager with configurations for local and S3 storage. It returns a BackupManager or an error if the configuration
internal/pg-backups/pg-backup-drive.go:55
FunctionParseQueryOptions
ParseQueryOptions extracts sorting options from query parameters. The table parameter is used to validate sort fields against the allowed fields for t
api/filter_helper.go:143
MethodProcessHookTask
(ctx context.Context, task *asynq.Task)
internal/hooks/types.go:74
MethodProcessHookTask
ProcessHookTask processes a hook execution task from the queue. It unmarshals the task payload, creates a context with timeout based on hook configura
internal/hooks/worker.go:39
MethodProcessWebhook
ProcessWebhook processes a webhook notification task from the queue. Parameters: - _ context.Context: The context for the operation. - task *asynq.Ta
webhooks.go:162
MethodQueueTransaction
QueueTransaction handles queuing a new transaction for later processing. It binds the incoming JSON request to a RecordTransaction object, validates i
api/transactions.go:150
MethodRecordExternalTransaction
(ctx context.Context, tx *model.ExternalTransaction, reconciliationID string)
database/mocks/repo_mocks.go:521
MethodRecordMatch
Retrieves reconciliations by upload ID
database/repository.go:157
MethodRecordMatch
(ctx context.Context, match *model.Match)
database/mocks/repo_mocks.go:496
MethodRecordMatches
(ctx context.Context, reconciliationID string, match []model.Match)
database/mocks/repo_mocks.go:501
MethodRecordMatchingRule
(ctx context.Context, rule *model.MatchingRule)
database/mocks/repo_mocks.go:526
MethodRecordReconciliation
Reconciliation methods
database/mocks/repo_mocks.go:476
MethodRecordTransaction
Transaction methods
database/mocks/repo_mocks.go:36
MethodRecordTransaction
RecordTransaction handles the recording of a new transaction. It binds the incoming JSON request to a RecordTransaction object, validates it, and then
api/transactions.go:113
MethodRecordTransactionWithBalances
(ctx context.Context, txn *model.Transaction, sourceBalance, destinationBalance *model.Balance)
database/mocks/repo_mocks.go:41
MethodRecordTransactionWithBalancesAndOutbox
RecordTransactionWithBalancesAndOutbox atomically records a transaction, updates balances, and optionally inserts a lineage outbox entry within a sing
database/transaction.go:268
MethodRecordTransactionWithBalancesAndOutbox
(ctx context.Context, txn *model.Transaction, sourceBalance, destinationBalance *model.Balance, outbox *model.
database/mocks/repo_mocks.go:46
MethodRecordTransactionsWithBalanceSetAndOutboxes
(ctx context.Context, txns []*model.Transaction, balances []*model.Balance, outboxes []*model.LineageOutbox)
database/mocks/repo_mocks.go:62
MethodRecordTransactionsWithBalancesAndOutboxes
Records a transaction with balance updates and optional lineage outbox atomically
database/repository.go:47
MethodRecordTransactionsWithBalancesAndOutboxes
(ctx context.Context, txns []*model.Transaction, sourceBalance, destinationBalance *model.Balance, outboxes []
database/mocks/repo_mocks.go:54
MethodRecordUnmatched
(ctx context.Context, reconciliationID string, unmatched []string)
database/mocks/repo_mocks.go:506
MethodRecoverQueuedTransactions
RecoverQueuedTransactions triggers an immediate recovery of stuck queued transactions using the provided threshold. This is exposed for the manual tri
queue_recovery.go:128
MethodRecoverQueuedTransactions
RecoverQueuedTransactions triggers manual recovery of stuck queued transactions. Accepts an optional "threshold" query parameter (e.g. "5m", "10m") sp
api/transactions.go:515
MethodRefundTransaction
RefundTransaction processes a refund for a transaction based on the given ID. It retrieves the transaction to be refunded and processes it in batches.
api/transactions.go:188
MethodRegisterHook
RegisterHook registers a new webhook in Redis. It assigns a new ID if not provided, validates the hook configuration, and stores it in both the main r
internal/hooks/manager.go:76
MethodRegisterHook
RegisterHook handles the registration of a new webhook.
api/hooks.go:12
MethodRevokeAPIKey
(ctx context.Context, id, ownerID string)
database/mocks/repo_mocks.go:581
MethodRevokeAPIKey
RevokeAPIKey revokes an API key Parameters: - c: The Gin context containing the request and response Responses: - 204 No Content: If the API key is
api/apikeys.go:68
MethodSaveReconciliationProgress
(ctx context.Context, reconciliationID string, progress model.ReconciliationProgress)
database/mocks/repo_mocks.go:551
MethodSearch
Search performs a search on the specified collection using the provided query parameters. Parameters: - collection string: The name of the collection
search.go:35
MethodSearch
Search performs a search query on a specific collection with the provided search parameters.
internal/search/search.go:215
MethodSearch
Search performs a search query on a specified collection. It binds the incoming JSON request to a SearchCollectionParams object, executes the search q
api/api.go:188
MethodSet
(ctx context.Context, key string, value interface{}, ttl time.Duration)
database/transactions_test.go:48
MethodSet
(ctx context.Context, key string, value interface{}, ttl time.Duration)
database/reconciliation_test.go:42
MethodSet
Set adds a new entry to the cache with a specified key and TTL. Parameters: - ctx: The context for the operation. - key: The cache key under which to
internal/cache/cache.go:124
FunctionSetupOTelSDK
SetupOTelSDK bootstraps the OpenTelemetry pipeline. If it does not return an error, make sure to call shutdown for proper cleanup.
internal/traces/otel.go:55
MethodStartReconciliation
StartReconciliation initiates the reconciliation process by creating a new reconciliation entry and starting the process asynchronously. The process i
reconciliation.go:145
MethodStartReconciliation
StartReconciliation initiates a new reconciliation process based on the provided parameters. It starts the reconciliation process and returns the reco
api/reconciliation_api.go:69
MethodStartReindex
StartReindex triggers a full reindex of all data from the database to Typesense. The reindex runs asynchronously to avoid HTTP timeouts. Parameters:
api/reindex.go:49
MethodTakeBalanceSnapshots
TakeBalanceSnapshots creates daily snapshots of balances in batches. It accepts a batch size parameter to control the number of balances processed at
balance.go:496
MethodTakeBalanceSnapshots
(ctx context.Context, batchSize int)
database/mocks/repo_mocks.go:566
MethodTakeBalanceSnapshots
TakeBalanceSnapshots creates daily snapshots of balances in batches. It accepts an optional 'batch_size' query parameter to control the batch processi
api/balance.go:367
FunctionTestAPIKey_HasScope
(t *testing.T)
model/model_test.go:652
FunctionTestAPIKey_IsValid
(t *testing.T)
model/model_test.go:618
FunctionTestAcquireTransactionLocker
(t *testing.T)
transaction_test.go:49
FunctionTestAllSchemas
(t *testing.T)
internal/search/search_test.go:494
FunctionTestApplyPrecision
(t *testing.T)
model/model_test.go:416
FunctionTestApplyPrecisionWithEmptyAmount
(t *testing.T)
model/model_test.go:555
FunctionTestApplyRate
(t *testing.T)
model/model_test.go:426
FunctionTestApplyTransaction_Credit
(t *testing.T)
database/balance_test.go:2065
FunctionTestApplyTransaction_Debit
(t *testing.T)
database/balance_test.go:2040
FunctionTestApplyTransaction_InvalidAmount
(t *testing.T)
database/balance_test.go:2090
FunctionTestAssignQueueLaneDefaultsToNormal
(t *testing.T)
internal/hotpairs/hotpairs_test.go:97
FunctionTestAuthMiddleware_Authenticate
(t *testing.T)
api/middleware/auth_test.go:41
FunctionTestBackupManager_BackupToDisk_ContextCancellation
(t *testing.T)
internal/pg-backups/pg-backup-drive_test.go:101
FunctionTestBackupManager_BackupToDisk_InvalidDSN
(t *testing.T)
internal/pg-backups/pg-backup-drive_test.go:40
FunctionTestBackupManager_BackupToDisk_UnreachableDB
(t *testing.T)
internal/pg-backups/pg-backup-drive_test.go:60
FunctionTestBackupManager_BackupToS3_FailsOnBackup
(t *testing.T)
internal/pg-backups/pg-backup-drive_test.go:81
FunctionTestBackupManager_Struct
(t *testing.T)
internal/pg-backups/pg-backup-drive_test.go:29
FunctionTestBalanceMonitor_CheckCondition
(t *testing.T)
model/model_test.go:518
FunctionTestBalance_AddCredit
(t *testing.T)
model/model_test.go:55
FunctionTestBalance_AddDebit
(t *testing.T)
model/model_test.go:67
FunctionTestBalance_CommitInflightCredit
(t *testing.T)
model/model_test.go:384
FunctionTestBalance_CommitInflightDebit
(t *testing.T)
model/model_test.go:359
FunctionTestBalance_ComputeBalance
(t *testing.T)
model/model_test.go:77
FunctionTestBalance_RollbackInflightCredit
(t *testing.T)
model/model_test.go:398
FunctionTestBalance_RollbackInflightDebit
(t *testing.T)
model/model_test.go:407
FunctionTestBasicAuth
(t *testing.T)
internal/request/request_test.go:103
FunctionTestBatchReferenceCheckEnabled
(t *testing.T)
transaction_batch_test.go:277
FunctionTestBuild
(t *testing.T)
internal/filter/filter_test.go:460
FunctionTestBuildBalanceIdCondition
(t *testing.T)
internal/filter/filter_test.go:717
FunctionTestBuildConditionExpression
(t *testing.T)
internal/filter/filter_test.go:634
FunctionTestBuildIndicatorCondition
(t *testing.T)
internal/filter/filter_test.go:908
FunctionTestBuildOrderBy
(t *testing.T)
internal/filter/filter_test.go:663
FunctionTestBuildQueuedCoalescingBatchFallsBackToDestinationScope
(t *testing.T)
transaction_batch_test.go:172
FunctionTestBuildQueuedCoalescingBatchFallsBackToSourceScope
(t *testing.T)
transaction_batch_test.go:113
FunctionTestBuildScope
(t *testing.T)
api/middleware/auth_test.go:807
FunctionTestBuildWithOptions
(t *testing.T)
internal/filter/filter_test.go:594
FunctionTestCalculateAllocation
(t *testing.T)
lineage_test.go:304
FunctionTestCalculateBalanceFromTransactions_QueryError
(t *testing.T)
database/balance_test.go:2152
FunctionTestCalculateBalanceFromTransactions_Success
(t *testing.T)
database/balance_test.go:2116
FunctionTestCalculateDistributionsPrecise
(t *testing.T)
model/transaction_test.go:65
FunctionTestCall_Fail_DecodeResponse
(t *testing.T)
internal/request/request_test.go:74
FunctionTestCall_Fail_DoRequest
(t *testing.T)
internal/request/request_test.go:92
FunctionTestCall_Success
(t *testing.T)
internal/request/request_test.go:53
FunctionTestCanProcessTransaction
(t *testing.T)
model/model_test.go:88
FunctionTestCategorizeRejectionReason
(t *testing.T)
transaction_test.go:3754
FunctionTestCheckCondition_Extended
(t *testing.T)
model/model_test.go:879
FunctionTestCollectionConfigsInitialized
(t *testing.T)
internal/search/search_test.go:516
FunctionTestCommitWorkerFullFlow
(t *testing.T)
transaction_test.go:3928
FunctionTestCompare
(t *testing.T)
model/model_test.go:43
FunctionTestCompareSchemas_BothNewAndRemoved
(t *testing.T)
internal/search/search_test.go:272
FunctionTestCompareSchemas_NewFields
(t *testing.T)
internal/search/search_test.go:226
FunctionTestCompareSchemas_NoChanges
(t *testing.T)
internal/search/search_test.go:297
FunctionTestCompareSchemas_RemovedFields
(t *testing.T)
internal/search/search_test.go:249
FunctionTestConnectDB_EmptyDNS
(t *testing.T)
internal/pg-conn/pg_conn_test.go:25
FunctionTestConnectDB_Failure
(t *testing.T)
database/db_test.go:92
FunctionTestConnectDB_InvalidDNS
(t *testing.T)
internal/pg-conn/pg_conn_test.go:11
FunctionTestConnectDB_Success
(t *testing.T)
database/db_test.go:84
← previousnext →1,201–1,300 of 1,908, ranked by callers