Versions in this module Expand all Collapse all v1 v1.0.1 Nov 19, 2019 Changes in this version + const QueryStatusSuccess + const ResultTypeMatrix + const ResultTypeStream + const ResultTypeVector + const VersionLegacy + const VersionV1 + func ParseLabelQuery(r *http.Request) (*logproto.LabelRequest, error) + func ParseTailQuery(r *http.Request) (*logproto.TailRequest, error) + type DroppedStream struct + Labels LabelSet + Timestamp time.Time + func (s *DroppedStream) MarshalJSON() ([]byte, error) + func (s *DroppedStream) UnmarshalJSON(data []byte) error + type Entry struct + Line string + Timestamp time.Time + func (e *Entry) MarshalJSON() ([]byte, error) + func (e *Entry) UnmarshalJSON(data []byte) error + type InstantQuery struct + Direction logproto.Direction + Limit uint32 + Query string + Ts time.Time + func ParseInstantQuery(r *http.Request) (*InstantQuery, error) + type LabelResponse struct + Values []string + type LabelSet map[string]string + func (l LabelSet) String() string + type Matrix []model.SampleStream + func (Matrix) Type() ResultType + type PushRequest struct + Streams []*Stream + type QueryResponse struct + Data QueryResponseData + Status string + type QueryResponseData struct + Result ResultValue + ResultType ResultType + func (q *QueryResponseData) UnmarshalJSON(data []byte) error + type QueryStatus string + type RangeQuery struct + Direction logproto.Direction + End time.Time + Limit uint32 + Query string + Start time.Time + Step time.Duration + func ParseRangeQuery(r *http.Request) (*RangeQuery, error) + type ResultType string + type ResultValue interface + Type func() ResultType + type Stream struct + Entries []Entry + Labels LabelSet + type Streams []Stream + func (Streams) Type() ResultType + type TailResponse struct + DroppedStreams []DroppedStream + Streams []Stream + type Vector []model.Sample + func (Vector) Type() ResultType + type Version int + func GetVersion(uri string) Version