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
Method
MultiSearch
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
Function
NewBackupManager
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
Function
ParseQueryOptions
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
Method
ProcessHookTask
(ctx context.Context, task *asynq.Task)
internal/hooks/types.go:74
Method
ProcessHookTask
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
Method
ProcessWebhook
ProcessWebhook processes a webhook notification task from the queue. Parameters: - _ context.Context: The context for the operation. - task *asynq.Ta
webhooks.go:162
Method
QueueTransaction
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
Method
RecordExternalTransaction
(ctx context.Context, tx *model.ExternalTransaction, reconciliationID string)
database/mocks/repo_mocks.go:521
Method
RecordMatch
Retrieves reconciliations by upload ID
database/repository.go:157
Method
RecordMatch
(ctx context.Context, match *model.Match)
database/mocks/repo_mocks.go:496
Method
RecordMatches
(ctx context.Context, reconciliationID string, match []model.Match)
database/mocks/repo_mocks.go:501
Method
RecordMatchingRule
(ctx context.Context, rule *model.MatchingRule)
database/mocks/repo_mocks.go:526
Method
RecordReconciliation
Reconciliation methods
database/mocks/repo_mocks.go:476
Method
RecordTransaction
Transaction methods
database/mocks/repo_mocks.go:36
Method
RecordTransaction
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
Method
RecordTransactionWithBalances
(ctx context.Context, txn *model.Transaction, sourceBalance, destinationBalance *model.Balance)
database/mocks/repo_mocks.go:41
Method
RecordTransactionWithBalancesAndOutbox
RecordTransactionWithBalancesAndOutbox atomically records a transaction, updates balances, and optionally inserts a lineage outbox entry within a sing
database/transaction.go:268
Method
RecordTransactionWithBalancesAndOutbox
(ctx context.Context, txn *model.Transaction, sourceBalance, destinationBalance *model.Balance, outbox *model.
database/mocks/repo_mocks.go:46
Method
RecordTransactionsWithBalanceSetAndOutboxes
(ctx context.Context, txns []*model.Transaction, balances []*model.Balance, outboxes []*model.LineageOutbox)
database/mocks/repo_mocks.go:62
Method
RecordTransactionsWithBalancesAndOutboxes
Records a transaction with balance updates and optional lineage outbox atomically
database/repository.go:47
Method
RecordTransactionsWithBalancesAndOutboxes
(ctx context.Context, txns []*model.Transaction, sourceBalance, destinationBalance *model.Balance, outboxes []
database/mocks/repo_mocks.go:54
Method
RecordUnmatched
(ctx context.Context, reconciliationID string, unmatched []string)
database/mocks/repo_mocks.go:506
Method
RecoverQueuedTransactions
RecoverQueuedTransactions triggers an immediate recovery of stuck queued transactions using the provided threshold. This is exposed for the manual tri
queue_recovery.go:128
Method
RecoverQueuedTransactions
RecoverQueuedTransactions triggers manual recovery of stuck queued transactions. Accepts an optional "threshold" query parameter (e.g. "5m", "10m") sp
api/transactions.go:515
Method
RefundTransaction
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
Method
RegisterHook
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
Method
RegisterHook
RegisterHook handles the registration of a new webhook.
api/hooks.go:12
Method
RevokeAPIKey
(ctx context.Context, id, ownerID string)
database/mocks/repo_mocks.go:581
Method
RevokeAPIKey
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
Method
SaveReconciliationProgress
(ctx context.Context, reconciliationID string, progress model.ReconciliationProgress)
database/mocks/repo_mocks.go:551
Method
Search
Search performs a search on the specified collection using the provided query parameters. Parameters: - collection string: The name of the collection
search.go:35
Method
Search
Search performs a search query on a specific collection with the provided search parameters.
internal/search/search.go:215
Method
Search
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
Method
Set
(ctx context.Context, key string, value interface{}, ttl time.Duration)
database/transactions_test.go:48
Method
Set
(ctx context.Context, key string, value interface{}, ttl time.Duration)
database/reconciliation_test.go:42
Method
Set
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
Function
SetupOTelSDK
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
Method
StartReconciliation
StartReconciliation initiates the reconciliation process by creating a new reconciliation entry and starting the process asynchronously. The process i
reconciliation.go:145
Method
StartReconciliation
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
Method
StartReindex
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
Method
TakeBalanceSnapshots
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
Method
TakeBalanceSnapshots
(ctx context.Context, batchSize int)
database/mocks/repo_mocks.go:566
Method
TakeBalanceSnapshots
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
Function
TestAPIKey_HasScope
(t *testing.T)
model/model_test.go:652
Function
TestAPIKey_IsValid
(t *testing.T)
model/model_test.go:618
Function
TestAcquireTransactionLocker
(t *testing.T)
transaction_test.go:49
Function
TestAllSchemas
(t *testing.T)
internal/search/search_test.go:494
Function
TestApplyPrecision
(t *testing.T)
model/model_test.go:416
Function
TestApplyPrecisionWithEmptyAmount
(t *testing.T)
model/model_test.go:555
Function
TestApplyRate
(t *testing.T)
model/model_test.go:426
Function
TestApplyTransaction_Credit
(t *testing.T)
database/balance_test.go:2065
Function
TestApplyTransaction_Debit
(t *testing.T)
database/balance_test.go:2040
Function
TestApplyTransaction_InvalidAmount
(t *testing.T)
database/balance_test.go:2090
Function
TestAssignQueueLaneDefaultsToNormal
(t *testing.T)
internal/hotpairs/hotpairs_test.go:97
Function
TestAuthMiddleware_Authenticate
(t *testing.T)
api/middleware/auth_test.go:41
Function
TestBackupManager_BackupToDisk_ContextCancellation
(t *testing.T)
internal/pg-backups/pg-backup-drive_test.go:101
Function
TestBackupManager_BackupToDisk_InvalidDSN
(t *testing.T)
internal/pg-backups/pg-backup-drive_test.go:40
Function
TestBackupManager_BackupToDisk_UnreachableDB
(t *testing.T)
internal/pg-backups/pg-backup-drive_test.go:60
Function
TestBackupManager_BackupToS3_FailsOnBackup
(t *testing.T)
internal/pg-backups/pg-backup-drive_test.go:81
Function
TestBackupManager_Struct
(t *testing.T)
internal/pg-backups/pg-backup-drive_test.go:29
Function
TestBalanceMonitor_CheckCondition
(t *testing.T)
model/model_test.go:518
Function
TestBalance_AddCredit
(t *testing.T)
model/model_test.go:55
Function
TestBalance_AddDebit
(t *testing.T)
model/model_test.go:67
Function
TestBalance_CommitInflightCredit
(t *testing.T)
model/model_test.go:384
Function
TestBalance_CommitInflightDebit
(t *testing.T)
model/model_test.go:359
Function
TestBalance_ComputeBalance
(t *testing.T)
model/model_test.go:77
Function
TestBalance_RollbackInflightCredit
(t *testing.T)
model/model_test.go:398
Function
TestBalance_RollbackInflightDebit
(t *testing.T)
model/model_test.go:407
Function
TestBasicAuth
(t *testing.T)
internal/request/request_test.go:103
Function
TestBatchReferenceCheckEnabled
(t *testing.T)
transaction_batch_test.go:277
Function
TestBuild
(t *testing.T)
internal/filter/filter_test.go:460
Function
TestBuildBalanceIdCondition
(t *testing.T)
internal/filter/filter_test.go:717
Function
TestBuildConditionExpression
(t *testing.T)
internal/filter/filter_test.go:634
Function
TestBuildIndicatorCondition
(t *testing.T)
internal/filter/filter_test.go:908
Function
TestBuildOrderBy
(t *testing.T)
internal/filter/filter_test.go:663
Function
TestBuildQueuedCoalescingBatchFallsBackToDestinationScope
(t *testing.T)
transaction_batch_test.go:172
Function
TestBuildQueuedCoalescingBatchFallsBackToSourceScope
(t *testing.T)
transaction_batch_test.go:113
Function
TestBuildScope
(t *testing.T)
api/middleware/auth_test.go:807
Function
TestBuildWithOptions
(t *testing.T)
internal/filter/filter_test.go:594
Function
TestCalculateAllocation
(t *testing.T)
lineage_test.go:304
Function
TestCalculateBalanceFromTransactions_QueryError
(t *testing.T)
database/balance_test.go:2152
Function
TestCalculateBalanceFromTransactions_Success
(t *testing.T)
database/balance_test.go:2116
Function
TestCalculateDistributionsPrecise
(t *testing.T)
model/transaction_test.go:65
Function
TestCall_Fail_DecodeResponse
(t *testing.T)
internal/request/request_test.go:74
Function
TestCall_Fail_DoRequest
(t *testing.T)
internal/request/request_test.go:92
Function
TestCall_Success
(t *testing.T)
internal/request/request_test.go:53
Function
TestCanProcessTransaction
(t *testing.T)
model/model_test.go:88
Function
TestCategorizeRejectionReason
(t *testing.T)
transaction_test.go:3754
Function
TestCheckCondition_Extended
(t *testing.T)
model/model_test.go:879
Function
TestCollectionConfigsInitialized
(t *testing.T)
internal/search/search_test.go:516
Function
TestCommitWorkerFullFlow
(t *testing.T)
transaction_test.go:3928
Function
TestCompare
(t *testing.T)
model/model_test.go:43
Function
TestCompareSchemas_BothNewAndRemoved
(t *testing.T)
internal/search/search_test.go:272
Function
TestCompareSchemas_NewFields
(t *testing.T)
internal/search/search_test.go:226
Function
TestCompareSchemas_NoChanges
(t *testing.T)
internal/search/search_test.go:297
Function
TestCompareSchemas_RemovedFields
(t *testing.T)
internal/search/search_test.go:249
Function
TestConnectDB_EmptyDNS
(t *testing.T)
internal/pg-conn/pg_conn_test.go:25
Function
TestConnectDB_Failure
(t *testing.T)
database/db_test.go:92
Function
TestConnectDB_InvalidDNS
(t *testing.T)
internal/pg-conn/pg_conn_test.go:11
Function
TestConnectDB_Success
(t *testing.T)
database/db_test.go:84
← previous
next →
1,201–1,300 of 1,908, ranked by callers