Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/devaccuracy/ledgerforge
/ types & classes
Types & classes
159 in github.com/devaccuracy/ledgerforge
⨍
Functions
1,908
◇
Types & classes
159
↓ 2 callers
TypeAlias
SortOrder
SortOrder represents the sort direction.
internal/filter/types.go:51
↓ 2 callers
TypeAlias
State
internal/hotpairs/hotpairs.go:17
↓ 1 callers
TypeAlias
Action
Action represents the allowed actions on a resource. Actions include read, write, delete, and wildcard (*).
api/middleware/scope.go:27
↓ 1 callers
TypeAlias
HookType
internal/hooks/types.go:28
↓ 1 callers
TypeAlias
LogicalOperator
LogicalOperator represents how multiple filters are combined.
internal/filter/types.go:38
↓ 1 callers
TypeAlias
Resource
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
Struct
APIError
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
Struct
APIKey
model/api_key.go:9
Struct
Account
Account represents a financial account linked to a balance, identity, and ledger.
model/account.go:21
Struct
AccountGenerationHttpService
config/config.go:123
Struct
AccountNumberGenerationConfig
config/config.go:130
Struct
AlertCondition
AlertCondition specifies the field, operator, value, and precision for a balance monitor alert threshold.
model/balance.go:91
Struct
Allocation
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
Struct
Api
Api represents the API structure for handling requests.
api/api.go:32
Struct
AuthMiddleware
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
Struct
BackupManager
BackupManager manages database backups, supporting both local disk and S3 storage.
internal/pg-backups/pg-backup-drive.go:44
Struct
Balance
Balance represents a financial balance with credit, debit, inflight, and queued sub-balances.
model/balance.go:25
Struct
BalanceFilter
BalanceFilter defines filter criteria for querying balances by range, currency, ledger, and time period.
model/balance.go:73
Struct
BalanceLineage
BalanceLineage represents the complete fund lineage for a balance. Fields: - BalanceID string: The ID of the balance being queried. - TotalWithLineag
lineage.go:106
Struct
BalanceMonitor
BalanceMonitor defines a condition-based alert that triggers a callback when a balance meets the specified criteria.
model/balance.go:52
Struct
BalanceTracker
BalanceTracker tracks in-memory balance state and access frequency for hot-path optimization.
model/balance.go:85
Struct
BatchJobResult
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
Struct
BigIntString
balance_test.go:40
Struct
BuildResult
internal/filter/types.go:73
Struct
BulkTransactionRequest
BulkTransactionRequest encapsulates the data needed for a bulk transaction request.
model/transaction.go:476
Struct
BulkTransactionResult
BulkTransactionResult represents the outcome of a bulk transaction operation.
model/transaction.go:485
Interface
Cache
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
Struct
CollectionConfig
CollectionConfig holds configuration for a specific collection.
internal/search/search.go:41
Struct
Config
internal/hotpairs/hotpairs.go:26
Struct
Configuration
config/config.go:194
Struct
CreateAPIKeyRequest
api/model/api_key.go:5
Struct
CreateAccount
api/model/account.go:18
Struct
CreateBalance
api/model/balance.go:18
Struct
CreateBalanceMonitor
api/model/balance.go:28
Struct
CreateIdentity
api/model/identity.go:20
Struct
CreateLedger
api/model/ledger.go:18
Class
DashboardHandler
tests/loadtest/tools/dashboard.py:24
Struct
DataSourceConfig
config/config.go:104
Struct
Datasource
database/db.go:38
Struct
DetokenizeRequest
api/model/identity.go:45
Struct
Distribution
Distribution defines how a transaction amount is allocated to a specific source or destination.
model/transaction.go:38
TypeAlias
ErrorCode
ErrorCode defines a string type to represent specific error codes used in the API.
internal/apierror/apierror.go:27
Struct
ExternalTransaction
model/reconciliation_model.go:28
Struct
FilterRequest
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
Struct
FilterResponse
FilterResponse wraps the response with optional count.
api/filter_helper.go:77
Struct
Hook
Hook represents a webhook configuration.
internal/hooks/types.go:36
Interface
HookManager
HookManager defines the interface for managing hooks.
internal/hooks/types.go:65
Struct
HookPayload
HookPayload represents the data sent to webhook endpoints.
internal/hooks/types.go:50
Struct
HookResponse
HookResponse represents the expected response from webhook endpoints.
internal/hooks/types.go:58
Struct
HookTaskPayload
HookTaskPayload represents the payload for a queued hook task.
internal/hooks/types.go:78
Interface
IDataSource
IDataSource defines the interface for data source operations, grouping related functionalities.
database/repository.go:30
Struct
Identity
model/identity.go:23
Struct
IndexBatch
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
Struct
IndexItem
IndexItem represents a single item to be indexed in Typesense.
internal/search/search.go:101
Struct
InflightUpdate
api/model/transaction.go:50
Struct
Ledger
model/ledger.go:20
Struct
LedgerFilter
model/ledger.go:28
Struct
LedgerForge
LedgerForge represents the main struct for the LedgerForge application.
ledgerforge.go:42
Struct
LedgerForge
LedgerForge represents the CLI application, encapsulating the root Cobra command.
cmd/main.go:33
Struct
LineageMapping
LineageMapping tracks the relationship between a balance, its fund provider, and associated shadow/aggregate balances.
model/balance.go:62
Struct
LineageOutbox
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
Struct
LineageOutboxPayload
LineageOutboxPayload contains the transaction data needed for deferred lineage processing.
lineage.go:73
Struct
LineageOutboxProcessor
LineageOutboxProcessor processes pending lineage outbox entries. It polls the database for pending entries and processes them asynchronously, ensuring
lineage_worker.go:32
Struct
LineageSource
LineageSource represents a source of funds available for allocation during lineage debit processing. Fields: - BalanceID string: The ID of the shadow
lineage.go:56
Struct
Locker
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
Struct
Manager
internal/hotpairs/hotpairs.go:33
Struct
Match
model/reconciliation_model.go:20
Struct
MatchingCriteria
model/reconciliation_model.go:74
Struct
MatchingRule
model/reconciliation_model.go:64
Struct
MetadataRequest
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
Struct
MockConfigFetcher
MockConfigFetcher is a mock for the config fetching
webhooks_test.go:33
Struct
MockDataSource
MockDataSource is a mock implementation of the IDataSource interface
database/mocks/repo_mocks.go:30
Struct
MonitorCondition
api/model/balance.go:35
Struct
MultiLocker
MultiLocker manages multiple distributed locks with deterministic ordering. It acquires locks in lexicographic order to prevent deadlocks when multipl
internal/lock/lock.go:60
Struct
MultiSearchRequest
MultiSearchRequest represents a request for multiple searches
internal/search/search.go:220
Struct
NewWebhook
NewWebhook represents the structure of a webhook notification. It includes an event type and associated payload data.
webhooks.go:36
Struct
Notification
config/config.go:150
Struct
NotificationPayload
NotificationPayload represents the payload structure for notifications, containing the table and data.
internal/search/search.go:95
TypeAlias
Operator
Operator represents supported filter operators.
internal/filter/types.go:6
Interface
PairLaneCounter
internal/hotpairs/router.go:18
Struct
ParseError
internal/filter/types.go:87
Struct
ParseOptions
internal/filter/types.go:81
Struct
ParseResult
internal/filter/types.go:92
Struct
PoolConfig
PoolConfig holds Redis connection pool settings.
internal/redis-db/redisdb.go:31
Struct
ProviderBreakdown
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
Struct
QueryFilter
internal/filter/types.go:30
Struct
QueryFilterSet
internal/filter/types.go:45
Struct
QueryOptions
QueryOptions contains sorting and pagination options for queries.
internal/filter/types.go:59
Struct
Queue
Queue represents a queue for handling various tasks.
queue.go:40
Struct
QueueConfig
config/config.go:174
Struct
QueuedTransactionRecoveryProcessor
queue_recovery.go:31
Struct
RateLimitConfig
config/config.go:135
Struct
Reconciliation
model/reconciliation_model.go:38
Struct
ReconciliationConfig
config/config.go:167
Struct
ReconciliationProgress
model/reconciliation_model.go:50
Struct
ReconciliationResults
model/reconciliation_model.go:55
Struct
RecordTransaction
api/model/transaction.go:25
Struct
Redis
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
Struct
RedisCache
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
Struct
RedisConfig
config/config.go:112
next →
1–100 of 159, ranked by callers