MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / initializeRedisClients

Function initializeRedisClients

ledgerforge.go:65–88  ·  view source on GitHub ↗

initializeRedisClients sets up both the Redis client and Asynq client

(config *config.Configuration)

Source from the content-addressed store, hash-verified

63 Allocation = core.Allocation
64 LineageOutboxPayload = core.LineageOutboxPayload
65 ProviderBreakdown = core.ProviderBreakdown
66 BalanceLineage = core.BalanceLineage
67 TransactionLineage = core.TransactionLineage
68 BatchJobResult = core.BatchJobResult
69 NewWebhook = core.NewWebhook
70)
71
72// SQLFiles contains the embedded migration files used by the LedgerForge CLI.
73var SQLFiles embed.FS = core.SQLFiles
74
75// NewLedgerForge initializes a LedgerForge instance using the provided datasource.
76func NewLedgerForge(db database.IDataSource) (*LedgerForge, error) {
77 return core.NewLedgerForge(db)
78}
79
80// NewBalanceTracker creates a balance tracker.
81func NewBalanceTracker() *model.BalanceTracker {
82 return core.NewBalanceTracker()
83}
84
85// NewQueue creates the transaction queue service.
86func NewQueue(conf *config.Configuration, client *asynq.Client) *Queue {
87 return core.NewQueue(conf, client)
88}
89
90// IsInflightTransaction reports whether a transaction is an inflight transaction.
91func IsInflightTransaction(transaction *model.Transaction) bool {

Callers 1

NewLedgerForgeFunction · 0.85

Calls 1

ClientMethod · 0.80

Tested by

no test coverage detected