@@ -31,20 +31,20 @@ func (t *timeSeriesSeriesSet) At() storage.Series {
3131 if t .i < 0 {
3232 return nil
3333 }
34- return & Timeseries {series : t .ts [t .i ]}
34+ return & timeseries {series : t .ts [t .i ]}
3535}
3636
3737// Err implements SeriesSet interface
3838func (t * timeSeriesSeriesSet ) Err () error { return nil }
3939
40- // Timeseries is a type wrapper that implements the storage.Series interface
41- type Timeseries struct {
40+ // timeseries is a type wrapper that implements the storage.Series interface
41+ type timeseries struct {
4242 series client.TimeSeries
4343}
4444
45- // TimeSeriesSeriesIterator is a wrapper around a client.TimeSeries to implement the SeriesIterator interface
46- type TimeSeriesSeriesIterator struct {
47- ts * Timeseries
45+ // timeSeriesSeriesIterator is a wrapper around a client.TimeSeries to implement the SeriesIterator interface
46+ type timeSeriesSeriesIterator struct {
47+ ts * timeseries
4848 i int
4949}
5050
@@ -58,20 +58,20 @@ func (b byTimeSeriesLabels) Less(i, j int) bool {
5858
5959// Labels implements the storage.Series interface.
6060// Conversion is safe because ingester sets these by calling client.FromLabelsToLabelAdapters which guarantees labels are sorted.
61- func (t * Timeseries ) Labels () labels.Labels {
61+ func (t * timeseries ) Labels () labels.Labels {
6262 return client .FromLabelAdaptersToLabels (t .series .Labels )
6363}
6464
6565// Iterator implements the storage.Series interface
66- func (t * Timeseries ) Iterator () storage.SeriesIterator {
67- return & TimeSeriesSeriesIterator {
66+ func (t * timeseries ) Iterator () storage.SeriesIterator {
67+ return & timeSeriesSeriesIterator {
6868 ts : t ,
6969 i : - 1 ,
7070 }
7171}
7272
7373// Seek implements SeriesIterator interface
74- func (t * TimeSeriesSeriesIterator ) Seek (s int64 ) bool {
74+ func (t * timeSeriesSeriesIterator ) Seek (s int64 ) bool {
7575 offset := 0
7676 if t .i > 0 {
7777 offset = t .i // only advance via Seek
@@ -85,15 +85,15 @@ func (t *TimeSeriesSeriesIterator) Seek(s int64) bool {
8585}
8686
8787// At implements the SeriesIterator interface
88- func (t * TimeSeriesSeriesIterator ) At () (int64 , float64 ) {
88+ func (t * timeSeriesSeriesIterator ) At () (int64 , float64 ) {
8989 if t .i < 0 || t .i >= len (t .ts .series .Samples ) {
9090 return 0 , 0
9191 }
9292 return t .ts .series .Samples [t .i ].TimestampMs , t .ts .series .Samples [t .i ].Value
9393}
9494
9595// Next implements the SeriesIterator interface
96- func (t * TimeSeriesSeriesIterator ) Next () bool { t .i ++ ; return t .i < len (t .ts .series .Samples ) }
96+ func (t * timeSeriesSeriesIterator ) Next () bool { t .i ++ ; return t .i < len (t .ts .series .Samples ) }
9797
9898// Err implements the SeriesIterator interface
99- func (t * TimeSeriesSeriesIterator ) Err () error { return nil }
99+ func (t * timeSeriesSeriesIterator ) Err () error { return nil }
0 commit comments