streamed.go
 1package entity
 2
 3type StreamedEntity[EntityT Interface] struct {
 4	Err    error
 5	Entity EntityT
 6
 7	// CurrentEntity is the index of the current entity being streamed, to express progress.
 8	CurrentEntity int64
 9	// TotalEntities is the total count of expected entities, if known.
10	TotalEntities int64
11}