{"modulePath":"github.com/devaccuracy/ledgerforge","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ledgerforge\n\nPackage ledgerforge provides the stable public API for LedgerForge Core.\n\nThe implementation lives in an internal core package. This facade intentionally preserves the original github.com/devaccuracy/ledgerforge import path for existing applications while keeping the repository root focused on module metadata and public compatibility.\n\n## Constants\n\n```go\nconst (\n\tInflightActionCommit  = core.InflightActionCommit\n\tInflightActionVoid    = core.InflightActionVoid\n\tIndexModeRefresh      = core.IndexModeRefresh\n\tBulkInflightCommit    = core.BulkInflightCommit\n\tBulkInflightVoid      = core.BulkInflightVoid\n\tGeneralLedgerID       = core.GeneralLedgerID\n\tLineageProviderKey    = core.LineageProviderKey\n\tLineageFundAllocation = core.LineageFundAllocation\n\tAllocationFIFO        = core.AllocationFIFO\n\tAllocationLIFO        = core.AllocationLIFO\n\tAllocationProp        = core.AllocationProp\n\tStatusQueued          = core.StatusQueued\n\tStatusApplied         = core.StatusApplied\n\tStatusScheduled       = core.StatusScheduled\n\tStatusRejected        = core.StatusRejected\n\tStatusInflight        = core.StatusInflight\n\tStatusVoid            = core.StatusVoid\n\tStatusCommit          = core.StatusCommit\n\tStatusStarted         = core.StatusStarted\n\tStatusInProgress      = core.StatusInProgress\n\tStatusCompleted       = core.StatusCompleted\n\tStatusFailed          = core.StatusFailed\n)\n```\n\n## Variables\n\n```go\nvar (\n\tErrReindexInProgress = search.ErrReindexInProgress\n\tErrReindexNotStarted = search.ErrReindexNotStarted\n\tErrReindexClosed     = search.ErrReindexClosed\n)\n```\nReindex errors preserve admission and progress semantics across transports.\n\n```go\nvar ErrEntityNotFound = core.ErrEntityNotFound\n```\nErrEntityNotFound indicates that a metadata target does not exist.\n\n```go\nvar ErrInflightActionQueued = core.ErrInflightActionQueued\n```\nErrInflightActionQueued indicates a pending commit or void for a transaction.\n\n```go\nvar ErrQueueBackpressure = core.ErrQueueBackpressure\n```\nErrQueueBackpressure indicates that the queue cannot safely accept more work.\n\n```go\nvar SQLFiles embed.FS = core.SQLFiles\n```\nSQLFiles contains the embedded migration files used by the LedgerForge CLI.\n\n## Functions\n\n```go\nfunc ClassifyInflightError(err error) string\n```\nClassifyInflightError returns the public error code for an inflight operation.\n\n```go\nfunc DocumentToIndexMap(document interface{}) (map[string]interface{}, error)\n```\nDocumentToIndexMap converts a search document into its index representation.\n\n```go\nfunc IsDuplicateReferenceError(err error) bool\n```\nIsDuplicateReferenceError identifies a transaction reference conflict.\n\n```go\nfunc IsInflightTransaction(transaction *model.Transaction) bool\n```\nIsInflightTransaction reports whether a transaction is an inflight transaction.\n\n```go\nfunc NewBalanceTracker() *model.BalanceTracker\n```\nNewBalanceTracker creates a balance tracker.\n\n## Types\n\n```go\ntype Allocation = core.Allocation\n```\n\n```go\ntype BalanceLineage = core.BalanceLineage\n```\n\n```go\ntype BatchJobResult = core.BatchJobResult\n```\n\n```go\ntype BulkInflightAction = core.BulkInflightAction\n```\n\n```go\ntype BulkInflightItem = core.BulkInflightItem\n```\n\n```go\ntype BulkInflightOutcome = core.BulkInflightOutcome\n```\n\n```go\ntype BulkTransactionError = core.BulkTransactionError\n```\n\n```go\ntype ChainProcessor = core.ChainProcessor\n```\n\n```go\nfunc NewChainProcessor(service *LedgerForge) *ChainProcessor\n```\nNewChainProcessor creates the transaction hash-chain worker.\n\n```go\ntype ChainVerifyResult = core.ChainVerifyResult\n```\n\n```go\ntype IndexTask = core.IndexTask\n```\n\n```go\ntype IndexUpserter = core.IndexUpserter\n```\n\n```go\ntype InflightActionPayload = core.InflightActionPayload\n```\n\n```go\ntype LedgerForge = core.LedgerForge\n```\n\n```go\nfunc NewLedgerForge(db database.IDataSource) (*LedgerForge, error)\n```\nNewLedgerForge initializes a LedgerForge instance using the provided datasource.\n\n```go\ntype LineageOutboxPayload = core.LineageOutboxPayload\n```\n\n```go\ntype LineageOutboxProcessor = core.LineageOutboxProcessor\n```\n\n```go\nfunc NewLineageOutboxProcessor(service *LedgerForge) *LineageOutboxProcessor\n```\nNewLineageOutboxProcessor creates the lineage outbox worker.\n\n```go\ntype LineageSource = core.LineageSource\n```\n\n```go\ntype NewWebhook = core.NewWebhook\n```\n\n```go\ntype ProviderBreakdown = core.ProviderBreakdown\n```\n\n```go\ntype Queue = core.Queue\n```\n\n```go\nfunc NewQueue(conf *config.Configuration, client *asynq.Client) *Queue\n```\nNewQueue creates the transaction queue service.\n\n```go\nfunc NewQueueWithRedisClient(conf *config.Configuration, client *asynq.Client, redisClient redis.UniversalClient) *Queue\n```\nNewQueueWithRedisClient creates a queue with Redis memory backpressure checks.\n\n```go\ntype QueuedTransactionRecoveryProcessor = core.QueuedTransactionRecoveryProcessor\n```\n\n```go\nfunc NewQueuedTransactionRecoveryProcessor(service *LedgerForge) *QueuedTransactionRecoveryProcessor\n```\nNewQueuedTransactionRecoveryProcessor creates the queued-transaction recovery worker.\n\n```go\ntype RefundOptions = core.RefundOptions\n```\n\n```go\ntype ReindexProgress = search.ReindexProgress\n```\n\n```go\ntype TransactionLineage = core.TransactionLineage\n```\n\n```go\ntype TransactionTypePayload = core.TransactionTypePayload\n```\n\n","path":"github.com/devaccuracy/ledgerforge","name":"ledgerforge","synopsis":"Package ledgerforge provides the stable public API for LedgerForge Core.","isRedistributable":true}
