aboutsummaryrefslogtreecommitdiffstats
path: root/entity/streamed.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2023-01-14 14:49:25 +0100
committerGitHub <noreply@github.com>2023-01-14 14:49:25 +0100
commit6e5ea512ac82972c6e0da78976f967006e5fe5c4 (patch)
tree7727fc721b4bd82fcf7869fb48f9656504cbb3af /entity/streamed.go
parenta1eec9aadfa24bad4804edc5fbb1c0753f4690cb (diff)
parent7df34aa7a40be0d7b759ea3ef42cedf9f25f32b2 (diff)
downloadgit-bug-6e5ea512ac82972c6e0da78976f967006e5fe5c4.tar.gz
Merge pull request #987 from MichaelMure/cache-progress-bar
commands: add a nice terminal progress bar when building the cache
Diffstat (limited to 'entity/streamed.go')
-rw-r--r--entity/streamed.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/entity/streamed.go b/entity/streamed.go
index 789224a3..33124ef0 100644
--- a/entity/streamed.go
+++ b/entity/streamed.go
@@ -1,6 +1,11 @@
package entity
type StreamedEntity[EntityT Interface] struct {
- Entity EntityT
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
}