mirror of
https://github.com/grafana/tempo.git
synced 2025-03-14 03:06:42 +00:00
* Move all intrinsic tag lookup to the query-frontend and prioritize them in the results * lint, error handling, fix tests * Fix some tests * Revert unintended change to search/tags v1 behavior, update tests * Reduce diff * Revert unintended change to 'none' scope * reduce diff * changelog * Update test to test intrinsic handling at the limit * todos
31 lines
615 B
Go
31 lines
615 B
Go
package combiner
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// Combiner is used to merge multiple responses into a single response.
|
|
//
|
|
// Implementations must be thread-safe.
|
|
// TODO: StatusCode() is only used for multi-tenant support. Can we remove it?
|
|
type Combiner interface {
|
|
AddResponse(r PipelineResponse) error
|
|
StatusCode() int
|
|
ShouldQuit() bool
|
|
|
|
// returns the final/complete results
|
|
HTTPFinal() (*http.Response, error)
|
|
}
|
|
|
|
type TypedCombiner[T TResponse] interface {
|
|
AddTypedResponse(r T) error
|
|
}
|
|
|
|
type GRPCCombiner[T TResponse] interface {
|
|
Combiner
|
|
TypedCombiner[T]
|
|
|
|
GRPCFinal() (T, error)
|
|
GRPCDiff() (T, error)
|
|
}
|