ChunksCount returns the number of chunks in response.
()
| 11 | |
| 12 | // ChunksCount returns the number of chunks in response. |
| 13 | func (m *QueryStreamResponse) ChunksCount() int { |
| 14 | if len(m.Chunkseries) == 0 { |
| 15 | return 0 |
| 16 | } |
| 17 | |
| 18 | count := 0 |
| 19 | for _, entry := range m.Chunkseries { |
| 20 | count += len(entry.Chunks) |
| 21 | } |
| 22 | return count |
| 23 | } |
| 24 | |
| 25 | // ChunksSize returns the size of all chunks in the response. |
| 26 | func (m *QueryStreamResponse) ChunksSize() int { |