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

Method GetBalanceAtTime

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

Takes balance snapshots

(ctx context.Context, balanceID string, targetTime time.Time, fromSource bool)

Source from the content-addressed store, hash-verified

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
105 GetBalanceAtTime(ctx context.Context, balanceID string, targetTime time.Time, fromSource bool) (*model.Balance, error) // Retrieves a balance at a specific time
106 UpdateBalanceIdentity(balanceID string, identityID string) error // Updates only the identity_id of a balance
107
108 // Advanced filtering methods

Callers 2

GetBalanceAtTimeMethod · 0.65
GetBalanceAtTimeMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected