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

Method GetBalanceByIndicator

database/repository.go:101–101  ·  view source on GitHub ↗

Updates a balance

(indicator, currency string)

Source from the content-addressed store, hash-verified

99 GetAllBalances(limit, offset int) ([]model.Balance, error) // Retrieves all balances (legacy)
100 UpdateBalance(balance *model.Balance) error // Updates a balance
101 GetBalanceByIndicator(indicator, currency string) (*model.Balance, error) // Retrieves a balance by indicator and currency
102 UpdateBalances(ctx context.Context, sourceBalance, destinationBalance *model.Balance) error // Updates multiple balances
103 GetSourceDestination(sourceId, destinationId string) ([]*model.Balance, error) // Retrieves balances between source and destination
104 TakeBalanceSnapshots(ctx context.Context, batchSize int) (int, error) // Takes balance snapshots

Callers 3

GetBalanceByIndicatorMethod · 0.65
GetBalanceByIndicatorMethod · 0.65

Implementers 2

Datasourcedatabase/db.go
MockDataSourcedatabase/mocks/repo_mocks.go

Calls

no outgoing calls

Tested by

no test coverage detected