Skip to content

Commit

Permalink
Copied Thanos storepb definitions into Mimir
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <marco@pracucci.com>
  • Loading branch information
pracucci committed Oct 14, 2022
1 parent 13fb2a4 commit 88ec1b2
Show file tree
Hide file tree
Showing 15 changed files with 7,898 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkg/storegateway/hintspb/custom.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.

package hintspb

import "github.com/oklog/ulid"

func (m *SeriesResponseHints) AddQueriedBlock(id ulid.ULID) {
m.QueriedBlocks = append(m.QueriedBlocks, Block{
Id: id.String(),
})
}

func (m *LabelNamesResponseHints) AddQueriedBlock(id ulid.ULID) {
m.QueriedBlocks = append(m.QueriedBlocks, Block{
Id: id.String(),
})
}

func (m *LabelValuesResponseHints) AddQueriedBlock(id ulid.ULID) {
m.QueriedBlocks = append(m.QueriedBlocks, Block{
Id: id.String(),
})
}
Loading

0 comments on commit 88ec1b2

Please sign in to comment.