MCPcopy Create free account

hub / github.com/devaccuracy/ledgerforge / functions

Functions1,908 in github.com/devaccuracy/ledgerforge

FunctionBenchmarkApplyPrecision
BenchmarkApplyPrecision measures precision application to transactions
transaction_benchmark_test.go:280
FunctionBenchmarkApplyTransactionToBalances
BenchmarkApplyTransactionToBalances measures in-memory balance calculation
transaction_benchmark_test.go:181
FunctionBenchmarkApplyTransactionToBalancesParallel
BenchmarkApplyTransactionToBalancesParallel measures parallel balance calculations
transaction_benchmark_test.go:201
FunctionBenchmarkBigIntOperations
BenchmarkBigIntOperations measures big.Int arithmetic used in balance calculations
transaction_benchmark_test.go:299
FunctionBenchmarkBigIntOperationsParallel
BenchmarkBigIntOperationsParallel measures parallel big.Int operations
transaction_benchmark_test.go:311
FunctionBenchmarkConfigCached
BenchmarkConfigCached measures direct config access This represents the NEW approach after our optimization
transaction_benchmark_test.go:128
FunctionBenchmarkConfigFetch
BenchmarkConfigFetch measures the overhead of calling config.Fetch() repeatedly This represents the OLD approach before our optimization
transaction_benchmark_test.go:113
FunctionBenchmarkCreateQueueCopy
BenchmarkCreateQueueCopy measures queue copy creation for split transactions
transaction_benchmark_test.go:363
FunctionBenchmarkGenerateUUID
BenchmarkGenerateUUID measures UUID generation overhead
transaction_benchmark_test.go:324
FunctionBenchmarkGenerateUUIDParallel
BenchmarkGenerateUUIDParallel measures parallel UUID generation
transaction_benchmark_test.go:332
FunctionBenchmarkHashBalanceID
BenchmarkHashBalanceID measures the hash function used for queue assignment
transaction_benchmark_test.go:244
FunctionBenchmarkHashBalanceIDVaried
BenchmarkHashBalanceIDVaried measures hashing with different balance IDs
transaction_benchmark_test.go:254
FunctionBenchmarkIsInflightTransaction
BenchmarkIsInflightTransaction measures the inflight status check
transaction_benchmark_test.go:341
FunctionBenchmarkSetTransactionMetadata
BenchmarkSetTransactionMetadata measures transaction metadata setup
transaction_benchmark_test.go:290
FunctionBenchmarkTransactionHashTxn
BenchmarkTransactionHashTxn measures transaction hash generation
transaction_benchmark_test.go:267
FunctionBenchmarkTransactionMarshal
BenchmarkTransactionMarshal measures JSON serialization overhead
transaction_benchmark_test.go:138
FunctionBenchmarkTransactionUnmarshal
BenchmarkTransactionUnmarshal measures JSON deserialization overhead
transaction_benchmark_test.go:158
FunctionBenchmarkValidateTxn
BenchmarkValidateTxn measures transaction reference validation
transaction_benchmark_test.go:222
MethodClaimPendingOutboxEntries
ClaimPendingOutboxEntries claims a batch of pending outbox entries for processing. It uses SELECT FOR UPDATE SKIP LOCKED to allow concurrent processor
database/lineage.go:279
MethodClaimPendingOutboxEntries
(ctx context.Context, batchSize int, lockDuration time.Duration)
database/mocks/repo_mocks.go:653
MethodCountQueuedTransactionsForPairLane
(ctx context.Context, source, destination, currency, lane string)
database/repository.go:74
MethodCountQueuedTransactionsForPairLane
(ctx context.Context, source, destination, currency, lane string)
database/transaction.go:2129
MethodCountQueuedTransactionsForPairLane
(ctx context.Context, source, destination, currency, lane string)
database/mocks/repo_mocks.go:195
MethodCountQueuedTransactionsForPairLane
(ctx context.Context, source, destination, currency, lane string)
internal/hotpairs/hotpairs_test.go:93
MethodCreateAPIKey
(ctx context.Context, name, ownerID string, scopes []string, expiresAt time.Time)
database/mocks/repo_mocks.go:571
MethodCreateAPIKey
CreateAPIKey creates a new API key for the authenticated user Parameters: - c: The Gin context containing the request and response Responses: - 400
api/apikeys.go:19
MethodCreateAccount
Account methods
database/mocks/repo_mocks.go:340
MethodCreateAccount
CreateAccount handles the creation of a new account. It binds the incoming JSON request body to a CreateAccount model, validates it, and creates the a
api/accounts.go:39
MethodCreateBalance
Balance methods
database/mocks/repo_mocks.go:265
MethodCreateBalance
CreateBalance creates a new balance record in the system. It binds the incoming JSON request to a CreateBalance object, validates it, and then creates
api/balance.go:40
MethodCreateBalanceMonitor
CreateBalanceMonitor creates a new balance monitor record in the system. It binds the incoming JSON request to a CreateBalanceMonitor object, validate
api/balance.go:204
MethodCreateBulkTransactions
CreateBulkTransactions handles the creation of multiple transactions in a batch. It parses the request, calls the LedgerForge service to handle the co
api/transactions.go:456
MethodCreateIdentity
Identity methods
database/mocks/repo_mocks.go:424
MethodCreateIdentity
CreateIdentity creates a new identity record in the system. It binds the incoming JSON request to an Identity object, validates it, and then creates t
api/identity.go:39
MethodCreateLedger
Ledger methods
database/mocks/repo_mocks.go:202
MethodCreateLedger
CreateLedger creates a new ledger record in the system. It binds the incoming JSON request to a CreateLedger object, validates it, and then creates th
api/ledger.go:38
MethodCreateMatchingRule
CreateMatchingRule creates a new matching rule after validating it. Parameters: - ctx: The context for managing the request. - rule: The matching rule
reconciliation.go:1112
MethodCreateMatchingRule
CreateMatchingRule creates a new matching rule based on the provided rule details. It returns the created matching rule. Parameters: - c: The Gin con
api/reconciliation_api.go:191
MethodCreateMonitor
BalanceMonitor methods
database/mocks/repo_mocks.go:392
MethodDebug
(args ...interface{})
api/transaction_api_test.go:79
MethodDelete
(ctx context.Context, key string)
database/transactions_test.go:65
MethodDelete
(ctx context.Context, key string)
database/reconciliation_test.go:54
MethodDelete
Delete removes an entry from the cache based on the provided key. Parameters: - ctx: The context for the operation. - key: The cache key to delete. Re
internal/cache/cache.go:153
MethodDeleteAccount
Updates an account
database/repository.go:120
MethodDeleteAccount
(id string)
database/mocks/repo_mocks.go:385
MethodDeleteBalanceMonitor
DeleteBalanceMonitor deletes an existing balance monitor record by its ID. It extracts the ID from the route parameters and deletes the record. If the
api/balance.go:342
MethodDeleteHook
DeleteHook removes a webhook from Redis. It retrieves the hook to determine its type, then deletes it from both the main registry and the type-specifi
internal/hooks/manager.go:163
MethodDeleteHook
DeleteHook removes a webhook by ID.
api/hooks.go:69
MethodDeleteIdentity
(id string)
database/mocks/repo_mocks.go:469
MethodDeleteIdentity
DeleteIdentity deletes an existing identity record by its ID. It extracts the ID from the route parameters and deletes the record. If the ID is missin
api/identity.go:126
MethodDeleteLineageMapping
Retrieves a specific lineage mapping
database/repository.go:186
MethodDeleteLineageMapping
DeleteLineageMapping deletes a lineage mapping by its ID.
database/lineage.go:123
MethodDeleteLineageMapping
(ctx context.Context, id int64)
database/mocks/repo_mocks.go:636
MethodDeleteMatchingRule
DeleteMatchingRule deletes a matching rule by its ID. Parameters: - ctx: The context for managing the request. - id: The ID of the rule to delete. Ret
reconciliation.go:1182
MethodDeleteMatchingRule
(ctx context.Context, id string)
database/mocks/repo_mocks.go:546
MethodDeleteMatchingRule
DeleteMatchingRule deletes a matching rule identified by its ID. It confirms the deletion with a success message. Parameters: - c: The Gin context co
api/reconciliation_api.go:252
MethodDeleteMonitor
(id string)
database/mocks/repo_mocks.go:417
MethodDetokenizeIdentity
DetokenizeIdentity detokenizes multiple fields in an identity. It binds the incoming JSON request containing the list of fields to detokenize, detoken
api/identity.go:355
MethodExecuteHook
ExecuteHook is a public wrapper for processing a hook task. It executes the webhook by sending an HTTP POST request to the configured URL. Parameters
internal/hooks/client.go:45
MethodExecutePostHooks
ExecutePostHooks queues all active post-transaction hooks for execution. It retrieves all PostTransaction hooks and queues them with the transaction d
internal/hooks/manager.go:267
MethodExecutePreHooks
ExecutePreHooks queues all active pre-transaction hooks for execution. It retrieves all PreTransaction hooks and queues them with the transaction data
internal/hooks/manager.go:248
MethodFatal
(args ...interface{})
api/transaction_api_test.go:95
MethodFetch
()
webhooks_test.go:37
MethodFetchAndGroupExternalTransactions
(ctx context.Context, uploadID string, groupCriteria string, batchSize int, offset int64)
database/mocks/repo_mocks.go:561
MethodFilterAccounts
FilterAccounts filters accounts using a JSON request body. This endpoint accepts a POST request with filters specified in JSON format. Request body f
api/accounts.go:161
MethodFilterBalances
FilterBalances filters balances using a JSON request body. This endpoint accepts a POST request with filters specified in JSON format. Request body f
api/balance.go:173
MethodFilterIdentities
FilterIdentities filters identities using a JSON request body. This endpoint accepts a POST request with filters specified in JSON format. Request bo
api/identity.go:222
MethodFilterLedgers
FilterLedgers filters ledgers using a JSON request body. This endpoint accepts a POST request with filters specified in JSON format. Request body for
api/ledger.go:170
MethodFilterTransactions
FilterTransactions filters transactions using a JSON request body. This endpoint accepts a POST request with filters specified in JSON format, providi
api/transactions.go:355
MethodGet
(ctx context.Context, key string, data interface{})
database/transactions_test.go:53
MethodGet
(ctx context.Context, key string, data interface{})
database/reconciliation_test.go:47
MethodGet
Get retrieves an entry from the cache based on the provided key. Parameters: - ctx: The context for the operation. - key: The cache key to retrieve. -
internal/cache/cache.go:139
MethodGetAPIKey
(ctx context.Context, id string)
database/mocks/repo_mocks.go:586
MethodGetAccount
GetAccount retrieves an account by its ID. It uses the provided account ID and optional query parameters to fetch the account. Parameters: - c: The G
api/accounts.go:71
MethodGetAccountByID
(id string, include []string)
database/mocks/repo_mocks.go:345
MethodGetAccountByNumber
(number string)
database/mocks/repo_mocks.go:375
MethodGetAllAccounts
()
database/mocks/repo_mocks.go:350
MethodGetAllAccounts
GetAllAccounts retrieves all accounts. It fetches a list of all accounts in the system. Supports advanced filtering via query parameters in the format
api/accounts.go:98
MethodGetAllAccountsWithFilter
GetAllAccountsWithFilter retrieves accounts using advanced filters. Parameters: - ctx context.Context: The context for the operation. - filters *filt
account.go:201
MethodGetAllAccountsWithFilter
GetAllAccountsWithFilter retrieves accounts with advanced filtering support. It delegates to GetAllAccountsWithFilterAndOptions with nil options. Par
database/account.go:379
MethodGetAllAccountsWithFilter
(ctx context.Context, filters *filter.QueryFilterSet, limit, offset int)
database/mocks/repo_mocks.go:355
MethodGetAllAccountsWithFilterAndOptions
GetAllAccountsWithFilterAndOptions retrieves accounts with filters, sorting, and optional count. Parameters: - ctx context.Context: The context for t
account.go:218
MethodGetAllAccountsWithFilterAndOptions
(ctx context.Context, filters *filter.QueryFilterSet, opts *filter.QueryOptions, limit, offset int)
database/mocks/repo_mocks.go:363
MethodGetAllBalanceMonitors
GetAllBalanceMonitors retrieves all balance monitor records in the system. It fetches the monitor records and responds with the list of monitors. If t
api/balance.go:262
MethodGetAllBalances
(limit, offset int)
database/mocks/repo_mocks.go:288
MethodGetAllBalancesWithFilter
GetAllBalancesWithFilter retrieves balances using advanced filters. It starts a tracing span, fetches balances matching the filter criteria, and recor
balance.go:304
MethodGetAllBalancesWithFilter
GetAllBalancesWithFilter retrieves balances with advanced filtering support. It delegates to GetAllBalancesWithFilterAndOptions with nil options. Par
database/balance.go:1738
MethodGetAllBalancesWithFilter
(ctx context.Context, filters *filter.QueryFilterSet, limit, offset int)
database/mocks/repo_mocks.go:293
MethodGetAllBalancesWithFilterAndOptions
GetAllBalancesWithFilterAndOptions retrieves balances with advanced filters, sorting, and optional count.
balance.go:318
MethodGetAllBalancesWithFilterAndOptions
(ctx context.Context, filters *filter.QueryFilterSet, opts *filter.QueryOptions, limit, offset int)
database/mocks/repo_mocks.go:301
MethodGetAllIdentities
()
database/mocks/repo_mocks.go:434
MethodGetAllIdentities
GetAllIdentities retrieves all identity records in the system. It fetches the identity records and responds with the list of identities. Supports adva
api/identity.go:158
MethodGetAllIdentitiesPaginated
GetAllIdentitiesPaginated retrieves identities from the database with pagination support. Parameters: - limit: The maximum number of identities to ret
database/identity.go:310
MethodGetAllIdentitiesPaginated
(limit, offset int)
database/mocks/repo_mocks.go:439
MethodGetAllIdentitiesWithFilter
GetAllIdentitiesWithFilter retrieves identities using advanced filters. Parameters: - ctx context.Context: The context for the operation. - filters *
identity.go:100
MethodGetAllIdentitiesWithFilter
GetAllIdentitiesWithFilter retrieves identities with advanced filtering support. It delegates to GetAllIdentitiesWithFilterAndOptions with nil options
database/identity.go:369
MethodGetAllIdentitiesWithFilter
(ctx context.Context, filters *filter.QueryFilterSet, limit, offset int)
database/mocks/repo_mocks.go:444
MethodGetAllIdentitiesWithFilterAndOptions
GetAllIdentitiesWithFilterAndOptions retrieves identities with filters, sorting, and optional count. Parameters: - ctx context.Context: The context f
identity.go:117
MethodGetAllIdentitiesWithFilterAndOptions
(ctx context.Context, filters *filter.QueryFilterSet, opts *filter.QueryOptions, limit, offset int)
database/mocks/repo_mocks.go:452
MethodGetAllLedgers
(limit, offset int)
database/mocks/repo_mocks.go:207
← previousnext →1,001–1,100 of 1,908, ranked by callers