Versions in this module Expand all Collapse all v0 v0.26.0 Apr 9, 2022 Changes in this version + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + func RegisterQueryServer(s *grpc.Server, srv QueryServer) + func StoreMatchersToLabelMatchers(matchers []StoreMatchers) ([][]*labels.Matcher, error) + type QueryClient interface + Query func(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (Query_QueryClient, error) + QueryRange func(ctx context.Context, in *QueryRangeRequest, opts ...grpc.CallOption) (Query_QueryRangeClient, error) + func NewQueryClient(cc *grpc.ClientConn) QueryClient + type QueryRangeRequest struct + EnableDedup bool + EnablePartialResponse bool + EnableQueryPushdown bool + EndTimeSeconds int64 + IntervalSeconds int64 + MaxResolutionSeconds int64 + Query string + ReplicaLabels []string + SkipChunks bool + StartTimeSeconds int64 + StoreMatchers []StoreMatchers + TimeoutSeconds int64 + func (*QueryRangeRequest) Descriptor() ([]byte, []int) + func (*QueryRangeRequest) ProtoMessage() + func (m *QueryRangeRequest) Marshal() (dAtA []byte, err error) + func (m *QueryRangeRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryRangeRequest) Reset() + func (m *QueryRangeRequest) Size() (n int) + func (m *QueryRangeRequest) String() string + func (m *QueryRangeRequest) Unmarshal(dAtA []byte) error + func (m *QueryRangeRequest) XXX_DiscardUnknown() + func (m *QueryRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryRangeRequest) XXX_Merge(src proto.Message) + func (m *QueryRangeRequest) XXX_Size() int + func (m *QueryRangeRequest) XXX_Unmarshal(b []byte) error + type QueryRangeResponse struct + Result isQueryRangeResponse_Result + func NewQueryRangeResponse(series *prompb.TimeSeries) *QueryRangeResponse + func NewQueryRangeWarningsResponse(errs []error) *QueryRangeResponse + func (*QueryRangeResponse) Descriptor() ([]byte, []int) + func (*QueryRangeResponse) ProtoMessage() + func (*QueryRangeResponse) XXX_OneofWrappers() []interface{} + func (m *QueryRangeResponse) GetResult() isQueryRangeResponse_Result + func (m *QueryRangeResponse) GetTimeseries() *prompb.TimeSeries + func (m *QueryRangeResponse) GetWarnings() string + func (m *QueryRangeResponse) Marshal() (dAtA []byte, err error) + func (m *QueryRangeResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryRangeResponse) Reset() + func (m *QueryRangeResponse) Size() (n int) + func (m *QueryRangeResponse) String() string + func (m *QueryRangeResponse) Unmarshal(dAtA []byte) error + func (m *QueryRangeResponse) XXX_DiscardUnknown() + func (m *QueryRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryRangeResponse) XXX_Merge(src proto.Message) + func (m *QueryRangeResponse) XXX_Size() int + func (m *QueryRangeResponse) XXX_Unmarshal(b []byte) error + type QueryRangeResponse_Timeseries struct + Timeseries *prompb.TimeSeries + func (m *QueryRangeResponse_Timeseries) MarshalTo(dAtA []byte) (int, error) + func (m *QueryRangeResponse_Timeseries) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryRangeResponse_Timeseries) Size() (n int) + type QueryRangeResponse_Warnings struct + Warnings string + func (m *QueryRangeResponse_Warnings) MarshalTo(dAtA []byte) (int, error) + func (m *QueryRangeResponse_Warnings) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryRangeResponse_Warnings) Size() (n int) + type QueryRequest struct + EnableDedup bool + EnablePartialResponse bool + EnableQueryPushdown bool + MaxResolutionSeconds int64 + Query string + ReplicaLabels []string + SkipChunks bool + StoreMatchers []StoreMatchers + TimeSeconds int64 + TimeoutSeconds int64 + func (*QueryRequest) Descriptor() ([]byte, []int) + func (*QueryRequest) ProtoMessage() + func (m *QueryRequest) Marshal() (dAtA []byte, err error) + func (m *QueryRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryRequest) Reset() + func (m *QueryRequest) Size() (n int) + func (m *QueryRequest) String() string + func (m *QueryRequest) Unmarshal(dAtA []byte) error + func (m *QueryRequest) XXX_DiscardUnknown() + func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryRequest) XXX_Merge(src proto.Message) + func (m *QueryRequest) XXX_Size() int + func (m *QueryRequest) XXX_Unmarshal(b []byte) error + type QueryResponse struct + Result isQueryResponse_Result + func NewQueryResponse(series *prompb.TimeSeries) *QueryResponse + func NewQueryWarningsResponse(errs []error) *QueryResponse + func (*QueryResponse) Descriptor() ([]byte, []int) + func (*QueryResponse) ProtoMessage() + func (*QueryResponse) XXX_OneofWrappers() []interface{} + func (m *QueryResponse) GetResult() isQueryResponse_Result + func (m *QueryResponse) GetTimeseries() *prompb.TimeSeries + func (m *QueryResponse) GetWarnings() string + func (m *QueryResponse) Marshal() (dAtA []byte, err error) + func (m *QueryResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryResponse) Reset() + func (m *QueryResponse) Size() (n int) + func (m *QueryResponse) String() string + func (m *QueryResponse) Unmarshal(dAtA []byte) error + func (m *QueryResponse) XXX_DiscardUnknown() + func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryResponse) XXX_Merge(src proto.Message) + func (m *QueryResponse) XXX_Size() int + func (m *QueryResponse) XXX_Unmarshal(b []byte) error + type QueryResponse_Timeseries struct + Timeseries *prompb.TimeSeries + func (m *QueryResponse_Timeseries) MarshalTo(dAtA []byte) (int, error) + func (m *QueryResponse_Timeseries) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryResponse_Timeseries) Size() (n int) + type QueryResponse_Warnings struct + Warnings string + func (m *QueryResponse_Warnings) MarshalTo(dAtA []byte) (int, error) + func (m *QueryResponse_Warnings) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryResponse_Warnings) Size() (n int) + type QueryServer interface + Query func(*QueryRequest, Query_QueryServer) error + QueryRange func(*QueryRangeRequest, Query_QueryRangeServer) error + type Query_QueryClient interface + Recv func() (*QueryResponse, error) + type Query_QueryRangeClient interface + Recv func() (*QueryRangeResponse, error) + type Query_QueryRangeServer interface + Send func(*QueryRangeResponse) error + type Query_QueryServer interface + Send func(*QueryResponse) error + type StoreMatchers struct + LabelMatchers []storepb.LabelMatcher + func (*StoreMatchers) Descriptor() ([]byte, []int) + func (*StoreMatchers) ProtoMessage() + func (m *StoreMatchers) Marshal() (dAtA []byte, err error) + func (m *StoreMatchers) MarshalTo(dAtA []byte) (int, error) + func (m *StoreMatchers) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *StoreMatchers) Reset() + func (m *StoreMatchers) Size() (n int) + func (m *StoreMatchers) String() string + func (m *StoreMatchers) Unmarshal(dAtA []byte) error + func (m *StoreMatchers) XXX_DiscardUnknown() + func (m *StoreMatchers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *StoreMatchers) XXX_Merge(src proto.Message) + func (m *StoreMatchers) XXX_Size() int + func (m *StoreMatchers) XXX_Unmarshal(b []byte) error + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Query(req *QueryRequest, srv Query_QueryServer) error + func (*UnimplementedQueryServer) QueryRange(req *QueryRangeRequest, srv Query_QueryRangeServer) error