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
Function
BenchmarkApplyPrecision
BenchmarkApplyPrecision measures precision application to transactions
transaction_benchmark_test.go:280
Function
BenchmarkApplyTransactionToBalances
BenchmarkApplyTransactionToBalances measures in-memory balance calculation
transaction_benchmark_test.go:181
Function
BenchmarkApplyTransactionToBalancesParallel
BenchmarkApplyTransactionToBalancesParallel measures parallel balance calculations
transaction_benchmark_test.go:201
Function
BenchmarkBigIntOperations
BenchmarkBigIntOperations measures big.Int arithmetic used in balance calculations
transaction_benchmark_test.go:299
Function
BenchmarkBigIntOperationsParallel
BenchmarkBigIntOperationsParallel measures parallel big.Int operations
transaction_benchmark_test.go:311
Function
BenchmarkConfigCached
BenchmarkConfigCached measures direct config access This represents the NEW approach after our optimization
transaction_benchmark_test.go:128
Function
BenchmarkConfigFetch
BenchmarkConfigFetch measures the overhead of calling config.Fetch() repeatedly This represents the OLD approach before our optimization
transaction_benchmark_test.go:113
Function
BenchmarkCreateQueueCopy
BenchmarkCreateQueueCopy measures queue copy creation for split transactions
transaction_benchmark_test.go:363
Function
BenchmarkGenerateUUID
BenchmarkGenerateUUID measures UUID generation overhead
transaction_benchmark_test.go:324
Function
BenchmarkGenerateUUIDParallel
BenchmarkGenerateUUIDParallel measures parallel UUID generation
transaction_benchmark_test.go:332
Function
BenchmarkHashBalanceID
BenchmarkHashBalanceID measures the hash function used for queue assignment
transaction_benchmark_test.go:244
Function
BenchmarkHashBalanceIDVaried
BenchmarkHashBalanceIDVaried measures hashing with different balance IDs
transaction_benchmark_test.go:254
Function
BenchmarkIsInflightTransaction
BenchmarkIsInflightTransaction measures the inflight status check
transaction_benchmark_test.go:341
Function
BenchmarkSetTransactionMetadata
BenchmarkSetTransactionMetadata measures transaction metadata setup
transaction_benchmark_test.go:290
Function
BenchmarkTransactionHashTxn
BenchmarkTransactionHashTxn measures transaction hash generation
transaction_benchmark_test.go:267
Function
BenchmarkTransactionMarshal
BenchmarkTransactionMarshal measures JSON serialization overhead
transaction_benchmark_test.go:138
Function
BenchmarkTransactionUnmarshal
BenchmarkTransactionUnmarshal measures JSON deserialization overhead
transaction_benchmark_test.go:158
Function
BenchmarkValidateTxn
BenchmarkValidateTxn measures transaction reference validation
transaction_benchmark_test.go:222
Method
ClaimPendingOutboxEntries
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
Method
ClaimPendingOutboxEntries
(ctx context.Context, batchSize int, lockDuration time.Duration)
database/mocks/repo_mocks.go:653
Method
CountQueuedTransactionsForPairLane
(ctx context.Context, source, destination, currency, lane string)
database/repository.go:74
Method
CountQueuedTransactionsForPairLane
(ctx context.Context, source, destination, currency, lane string)
database/transaction.go:2129
Method
CountQueuedTransactionsForPairLane
(ctx context.Context, source, destination, currency, lane string)
database/mocks/repo_mocks.go:195
Method
CountQueuedTransactionsForPairLane
(ctx context.Context, source, destination, currency, lane string)
internal/hotpairs/hotpairs_test.go:93
Method
CreateAPIKey
(ctx context.Context, name, ownerID string, scopes []string, expiresAt time.Time)
database/mocks/repo_mocks.go:571
Method
CreateAPIKey
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
Method
CreateAccount
Account methods
database/mocks/repo_mocks.go:340
Method
CreateAccount
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
Method
CreateBalance
Balance methods
database/mocks/repo_mocks.go:265
Method
CreateBalance
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
Method
CreateBalanceMonitor
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
Method
CreateBulkTransactions
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
Method
CreateIdentity
Identity methods
database/mocks/repo_mocks.go:424
Method
CreateIdentity
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
Method
CreateLedger
Ledger methods
database/mocks/repo_mocks.go:202
Method
CreateLedger
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
Method
CreateMatchingRule
CreateMatchingRule creates a new matching rule after validating it. Parameters: - ctx: The context for managing the request. - rule: The matching rule
reconciliation.go:1112
Method
CreateMatchingRule
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
Method
CreateMonitor
BalanceMonitor methods
database/mocks/repo_mocks.go:392
Method
Debug
(args ...interface{})
api/transaction_api_test.go:79
Method
Delete
(ctx context.Context, key string)
database/transactions_test.go:65
Method
Delete
(ctx context.Context, key string)
database/reconciliation_test.go:54
Method
Delete
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
Method
DeleteAccount
Updates an account
database/repository.go:120
Method
DeleteAccount
(id string)
database/mocks/repo_mocks.go:385
Method
DeleteBalanceMonitor
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
Method
DeleteHook
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
Method
DeleteHook
DeleteHook removes a webhook by ID.
api/hooks.go:69
Method
DeleteIdentity
(id string)
database/mocks/repo_mocks.go:469
Method
DeleteIdentity
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
Method
DeleteLineageMapping
Retrieves a specific lineage mapping
database/repository.go:186
Method
DeleteLineageMapping
DeleteLineageMapping deletes a lineage mapping by its ID.
database/lineage.go:123
Method
DeleteLineageMapping
(ctx context.Context, id int64)
database/mocks/repo_mocks.go:636
Method
DeleteMatchingRule
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
Method
DeleteMatchingRule
(ctx context.Context, id string)
database/mocks/repo_mocks.go:546
Method
DeleteMatchingRule
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
Method
DeleteMonitor
(id string)
database/mocks/repo_mocks.go:417
Method
DetokenizeIdentity
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
Method
ExecuteHook
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
Method
ExecutePostHooks
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
Method
ExecutePreHooks
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
Method
Fatal
(args ...interface{})
api/transaction_api_test.go:95
Method
Fetch
()
webhooks_test.go:37
Method
FetchAndGroupExternalTransactions
(ctx context.Context, uploadID string, groupCriteria string, batchSize int, offset int64)
database/mocks/repo_mocks.go:561
Method
FilterAccounts
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
Method
FilterBalances
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
Method
FilterIdentities
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
Method
FilterLedgers
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
Method
FilterTransactions
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
Method
Get
(ctx context.Context, key string, data interface{})
database/transactions_test.go:53
Method
Get
(ctx context.Context, key string, data interface{})
database/reconciliation_test.go:47
Method
Get
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
Method
GetAPIKey
(ctx context.Context, id string)
database/mocks/repo_mocks.go:586
Method
GetAccount
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
Method
GetAccountByID
(id string, include []string)
database/mocks/repo_mocks.go:345
Method
GetAccountByNumber
(number string)
database/mocks/repo_mocks.go:375
Method
GetAllAccounts
()
database/mocks/repo_mocks.go:350
Method
GetAllAccounts
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
Method
GetAllAccountsWithFilter
GetAllAccountsWithFilter retrieves accounts using advanced filters. Parameters: - ctx context.Context: The context for the operation. - filters *filt
account.go:201
Method
GetAllAccountsWithFilter
GetAllAccountsWithFilter retrieves accounts with advanced filtering support. It delegates to GetAllAccountsWithFilterAndOptions with nil options. Par
database/account.go:379
Method
GetAllAccountsWithFilter
(ctx context.Context, filters *filter.QueryFilterSet, limit, offset int)
database/mocks/repo_mocks.go:355
Method
GetAllAccountsWithFilterAndOptions
GetAllAccountsWithFilterAndOptions retrieves accounts with filters, sorting, and optional count. Parameters: - ctx context.Context: The context for t
account.go:218
Method
GetAllAccountsWithFilterAndOptions
(ctx context.Context, filters *filter.QueryFilterSet, opts *filter.QueryOptions, limit, offset int)
database/mocks/repo_mocks.go:363
Method
GetAllBalanceMonitors
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
Method
GetAllBalances
(limit, offset int)
database/mocks/repo_mocks.go:288
Method
GetAllBalancesWithFilter
GetAllBalancesWithFilter retrieves balances using advanced filters. It starts a tracing span, fetches balances matching the filter criteria, and recor
balance.go:304
Method
GetAllBalancesWithFilter
GetAllBalancesWithFilter retrieves balances with advanced filtering support. It delegates to GetAllBalancesWithFilterAndOptions with nil options. Par
database/balance.go:1738
Method
GetAllBalancesWithFilter
(ctx context.Context, filters *filter.QueryFilterSet, limit, offset int)
database/mocks/repo_mocks.go:293
Method
GetAllBalancesWithFilterAndOptions
GetAllBalancesWithFilterAndOptions retrieves balances with advanced filters, sorting, and optional count.
balance.go:318
Method
GetAllBalancesWithFilterAndOptions
(ctx context.Context, filters *filter.QueryFilterSet, opts *filter.QueryOptions, limit, offset int)
database/mocks/repo_mocks.go:301
Method
GetAllIdentities
()
database/mocks/repo_mocks.go:434
Method
GetAllIdentities
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
Method
GetAllIdentitiesPaginated
GetAllIdentitiesPaginated retrieves identities from the database with pagination support. Parameters: - limit: The maximum number of identities to ret
database/identity.go:310
Method
GetAllIdentitiesPaginated
(limit, offset int)
database/mocks/repo_mocks.go:439
Method
GetAllIdentitiesWithFilter
GetAllIdentitiesWithFilter retrieves identities using advanced filters. Parameters: - ctx context.Context: The context for the operation. - filters *
identity.go:100
Method
GetAllIdentitiesWithFilter
GetAllIdentitiesWithFilter retrieves identities with advanced filtering support. It delegates to GetAllIdentitiesWithFilterAndOptions with nil options
database/identity.go:369
Method
GetAllIdentitiesWithFilter
(ctx context.Context, filters *filter.QueryFilterSet, limit, offset int)
database/mocks/repo_mocks.go:444
Method
GetAllIdentitiesWithFilterAndOptions
GetAllIdentitiesWithFilterAndOptions retrieves identities with filters, sorting, and optional count. Parameters: - ctx context.Context: The context f
identity.go:117
Method
GetAllIdentitiesWithFilterAndOptions
(ctx context.Context, filters *filter.QueryFilterSet, opts *filter.QueryOptions, limit, offset int)
database/mocks/repo_mocks.go:452
Method
GetAllLedgers
(limit, offset int)
database/mocks/repo_mocks.go:207
← previous
next →
1,001–1,100 of 1,908, ranked by callers