streamed.go
1package bootstrap
2
3// TODO: type alias not possible on generics for now
4// https://github.com/golang/go/issues/46477
5
6type StreamedEntity[EntityT Entity] struct {
7 Err error
8 Entity EntityT
9
10 // CurrentEntity is the index of the current entity being streamed, to express progress.
11 CurrentEntity int64
12 // TotalEntities is the total count of expected entities, if known.
13 TotalEntities int64
14}