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

Method GetAllLedgers

ledger.go:75–77  ·  view source on GitHub ↗

GetAllLedgers retrieves all ledgers from the datasource. It returns a slice of Ledger models and an error if the operation fails. Returns: - []model.Ledger: A slice of Ledger models. - error: An error if the ledgers could not be retrieved.

(limit, offset int)

Source from the content-addressed store, hash-verified

73// - []model.Ledger: A slice of Ledger models.
74// - error: An error if the ledgers could not be retrieved.
75func (l *LedgerForge) GetAllLedgers(limit, offset int) ([]model.Ledger, error) {
76 return l.datasource.GetAllLedgers(limit, offset)
77}
78
79// GetAllLedgersWithFilter retrieves ledgers from the datasource using advanced filters.
80// It returns a slice of Ledger models and an error if the operation fails.

Callers 1

TestGetAllLedgersFunction · 0.95

Calls 1

GetAllLedgersMethod · 0.65

Tested by 1

TestGetAllLedgersFunction · 0.76