aboutsummaryrefslogtreecommitdiffstats
path: root/entity/streamed.go
blob: 33124ef0fa821e8c03ac198fbd49366e77d1c4cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
package entity

type StreamedEntity[EntityT Interface] struct {
	Err    error
	Entity EntityT

	// CurrentEntity is the index of the current entity being streamed, to express progress.
	CurrentEntity int64
	// TotalEntities is the total count of expected entities, if known.
	TotalEntities int64
}