15 lines
405 B
Go
15 lines
405 B
Go
package storage
|
|
|
|
import "context"
|
|
|
|
// Repository defines the main storage interface for ledger operations.
|
|
// It follows the fx/storage pattern with separate store interfaces for each collection.
|
|
type Repository interface {
|
|
Ping(ctx context.Context) error
|
|
Accounts() AccountsStore
|
|
JournalEntries() JournalEntriesStore
|
|
PostingLines() PostingLinesStore
|
|
Balances() BalancesStore
|
|
Outbox() OutboxStore
|
|
}
|