github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/pkg/lokifrontend/frontend/v2/frontendv2pb/frontend.proto (about)

     1  syntax = "proto3";
     2  
     3  package frontendv2pb;
     4  
     5  import "github.com/gogo/protobuf/gogoproto/gogo.proto";
     6  import "github.com/weaveworks/common/httpgrpc/httpgrpc.proto";
     7  import "pkg/querier/stats/stats.proto";
     8  
     9  option go_package = "frontendv2pb";
    10  option (gogoproto.marshaler_all) = true;
    11  option (gogoproto.unmarshaler_all) = true;
    12  
    13  // Frontend interface exposed to Queriers. Used by queriers to report back the result of the query.
    14  service FrontendForQuerier {
    15    rpc QueryResult(QueryResultRequest) returns (QueryResultResponse) {}
    16  }
    17  
    18  message QueryResultRequest {
    19    uint64 queryID = 1;
    20    httpgrpc.HTTPResponse httpResponse = 2;
    21    stats.Stats stats = 3;
    22  
    23  // There is no userID field here, because Querier puts userID into the context when
    24  // calling QueryResult, and that is where Frontend expects to find it.
    25  }
    26  
    27  message QueryResultResponse {}