MCPcopy Create free account

hub / github.com/devaccuracy/ledgerforge / types & classes

Types & classes159 in github.com/devaccuracy/ledgerforge

↓ 2 callersTypeAliasSortOrder
SortOrder represents the sort direction.
internal/filter/types.go:51
↓ 2 callersTypeAliasState
internal/hotpairs/hotpairs.go:17
↓ 1 callersTypeAliasAction
Action represents the allowed actions on a resource. Actions include read, write, delete, and wildcard (*).
api/middleware/scope.go:27
↓ 1 callersTypeAliasHookType
internal/hooks/types.go:28
↓ 1 callersTypeAliasLogicalOperator
LogicalOperator represents how multiple filters are combined.
internal/filter/types.go:38
↓ 1 callersTypeAliasResource
Resource represents a protected API resource that can be accessed via API keys. Each resource corresponds to a specific API endpoint category.
api/middleware/scope.go:23
StructAPIError
APIError represents a custom error structure for the API. It includes an error code, message, and optional details to provide additional context for t
internal/apierror/apierror.go:41
StructAPIKey
model/api_key.go:9
StructAccount
Account represents a financial account linked to a balance, identity, and ledger.
model/account.go:21
StructAccountGenerationHttpService
config/config.go:123
StructAccountNumberGenerationConfig
config/config.go:130
StructAlertCondition
AlertCondition specifies the field, operator, value, and precision for a balance monitor alert threshold.
model/balance.go:91
StructAllocation
Allocation represents the amount allocated from a specific shadow balance during debit processing. Fields: - BalanceID string: The ID of the shadow b
lineage.go:67
StructApi
Api represents the API structure for handling requests.
api/api.go:32
StructAuthMiddleware
AuthMiddleware handles authentication and authorization for API routes. It supports both master key and API key authentication using the X-LedgerForge
api/middleware/auth.go:54
StructBackupManager
BackupManager manages database backups, supporting both local disk and S3 storage.
internal/pg-backups/pg-backup-drive.go:44
StructBalance
Balance represents a financial balance with credit, debit, inflight, and queued sub-balances.
model/balance.go:25
StructBalanceFilter
BalanceFilter defines filter criteria for querying balances by range, currency, ledger, and time period.
model/balance.go:73
StructBalanceLineage
BalanceLineage represents the complete fund lineage for a balance. Fields: - BalanceID string: The ID of the balance being queried. - TotalWithLineag
lineage.go:106
StructBalanceMonitor
BalanceMonitor defines a condition-based alert that triggers a callback when a balance meets the specified criteria.
model/balance.go:52
StructBalanceTracker
BalanceTracker tracks in-memory balance state and access frequency for hot-path optimization.
model/balance.go:85
StructBatchJobResult
BatchJobResult represents the result of processing a transaction in a batch job. Fields: - Txn *model.Transaction: A pointer to the processed Transac
transaction.go:132
StructBigIntString
balance_test.go:40
StructBuildResult
internal/filter/types.go:73
StructBulkTransactionRequest
BulkTransactionRequest encapsulates the data needed for a bulk transaction request.
model/transaction.go:476
StructBulkTransactionResult
BulkTransactionResult represents the outcome of a bulk transaction operation.
model/transaction.go:485
InterfaceCache
Cache interface provides the basic operations for a cache system. It includes methods for setting, getting, and deleting cached data.
internal/cache/cache.go:31
StructCollectionConfig
CollectionConfig holds configuration for a specific collection.
internal/search/search.go:41
StructConfig
internal/hotpairs/hotpairs.go:26
StructConfiguration
config/config.go:194
StructCreateAPIKeyRequest
api/model/api_key.go:5
StructCreateAccount
api/model/account.go:18
StructCreateBalance
api/model/balance.go:18
StructCreateBalanceMonitor
api/model/balance.go:28
StructCreateIdentity
api/model/identity.go:20
StructCreateLedger
api/model/ledger.go:18
ClassDashboardHandler
tests/loadtest/tools/dashboard.py:24
StructDataSourceConfig
config/config.go:104
StructDatasource
database/db.go:38
StructDetokenizeRequest
api/model/identity.go:45
StructDistribution
Distribution defines how a transaction amount is allocated to a specific source or destination.
model/transaction.go:38
TypeAliasErrorCode
ErrorCode defines a string type to represent specific error codes used in the API.
internal/apierror/apierror.go:27
StructExternalTransaction
model/reconciliation_model.go:28
StructFilterRequest
FilterRequest represents the JSON body for filter endpoints. It allows clients to pass filters directly as JSON instead of query parameters.
api/filter_helper.go:66
StructFilterResponse
FilterResponse wraps the response with optional count.
api/filter_helper.go:77
StructHook
Hook represents a webhook configuration.
internal/hooks/types.go:36
InterfaceHookManager
HookManager defines the interface for managing hooks.
internal/hooks/types.go:65
StructHookPayload
HookPayload represents the data sent to webhook endpoints.
internal/hooks/types.go:50
StructHookResponse
HookResponse represents the expected response from webhook endpoints.
internal/hooks/types.go:58
StructHookTaskPayload
HookTaskPayload represents the payload for a queued hook task.
internal/hooks/types.go:78
InterfaceIDataSource
IDataSource defines the interface for data source operations, grouping related functionalities.
database/repository.go:30
StructIdentity
model/identity.go:23
StructIndexBatch
IndexBatch represents a batch of items to be indexed in dependency order. Dependencies are indexed first, then the primary item is indexed. This ensur
internal/search/search.go:110
StructIndexItem
IndexItem represents a single item to be indexed in Typesense.
internal/search/search.go:101
StructInflightUpdate
api/model/transaction.go:50
StructLedger
model/ledger.go:20
StructLedgerFilter
model/ledger.go:28
StructLedgerForge
LedgerForge represents the main struct for the LedgerForge application.
ledgerforge.go:42
StructLedgerForge
LedgerForge represents the CLI application, encapsulating the root Cobra command.
cmd/main.go:33
StructLineageMapping
LineageMapping tracks the relationship between a balance, its fund provider, and associated shadow/aggregate balances.
model/balance.go:62
StructLineageOutbox
LineageOutbox represents a pending lineage processing task. It is inserted atomically with the main transaction to ensure no lineage work is lost.
model/lineage.go:27
StructLineageOutboxPayload
LineageOutboxPayload contains the transaction data needed for deferred lineage processing.
lineage.go:73
StructLineageOutboxProcessor
LineageOutboxProcessor processes pending lineage outbox entries. It polls the database for pending entries and processes them asynchronously, ensuring
lineage_worker.go:32
StructLineageSource
LineageSource represents a source of funds available for allocation during lineage debit processing. Fields: - BalanceID string: The ID of the shadow
lineage.go:56
StructLocker
Locker represents a distributed lock using Redis. The lock is identified by a unique key and value, where the value is used to ensure that only the lo
internal/lock/lock.go:51
StructManager
internal/hotpairs/hotpairs.go:33
StructMatch
model/reconciliation_model.go:20
StructMatchingCriteria
model/reconciliation_model.go:74
StructMatchingRule
model/reconciliation_model.go:64
StructMetadataRequest
MetadataRequest represents the structure for metadata update requests. It contains a required metadata field that holds key-value pairs for updating e
api/metadata.go:12
StructMockConfigFetcher
MockConfigFetcher is a mock for the config fetching
webhooks_test.go:33
StructMockDataSource
MockDataSource is a mock implementation of the IDataSource interface
database/mocks/repo_mocks.go:30
StructMonitorCondition
api/model/balance.go:35
StructMultiLocker
MultiLocker manages multiple distributed locks with deterministic ordering. It acquires locks in lexicographic order to prevent deadlocks when multipl
internal/lock/lock.go:60
StructMultiSearchRequest
MultiSearchRequest represents a request for multiple searches
internal/search/search.go:220
StructNewWebhook
NewWebhook represents the structure of a webhook notification. It includes an event type and associated payload data.
webhooks.go:36
StructNotification
config/config.go:150
StructNotificationPayload
NotificationPayload represents the payload structure for notifications, containing the table and data.
internal/search/search.go:95
TypeAliasOperator
Operator represents supported filter operators.
internal/filter/types.go:6
InterfacePairLaneCounter
internal/hotpairs/router.go:18
StructParseError
internal/filter/types.go:87
StructParseOptions
internal/filter/types.go:81
StructParseResult
internal/filter/types.go:92
StructPoolConfig
PoolConfig holds Redis connection pool settings.
internal/redis-db/redisdb.go:31
StructProviderBreakdown
ProviderBreakdown represents the fund breakdown for a specific provider in a balance's lineage. Fields: - Provider string: The name/identifier of the
lineage.go:91
StructQueryFilter
internal/filter/types.go:30
StructQueryFilterSet
internal/filter/types.go:45
StructQueryOptions
QueryOptions contains sorting and pagination options for queries.
internal/filter/types.go:59
StructQueue
Queue represents a queue for handling various tasks.
queue.go:40
StructQueueConfig
config/config.go:174
StructQueuedTransactionRecoveryProcessor
queue_recovery.go:31
StructRateLimitConfig
config/config.go:135
StructReconciliation
model/reconciliation_model.go:38
StructReconciliationConfig
config/config.go:167
StructReconciliationProgress
model/reconciliation_model.go:50
StructReconciliationResults
model/reconciliation_model.go:55
StructRecordTransaction
api/model/transaction.go:25
StructRedis
Redis struct holds the Redis client and addresses of Redis instances. It supports both single-instance Redis connections and Redis Cluster setups.
internal/redis-db/redisdb.go:38
StructRedisCache
RedisCache implements the Cache interface, using Redis as the underlying cache store. It leverages both Redis and local in-memory caching for efficien
internal/cache/cache.go:59
StructRedisConfig
config/config.go:112
next →1–100 of 159, ranked by callers