Documentation
¶
Index ¶
- Constants
- Variables
- func Compare(al, bl *pb.LogItem) int
- type Aggregation
- type AggregationBucket
- type AggregationDescriptor
- type AggregationResponse
- type AggregationResult
- type AggregationType
- type Aggregator
- type Comparer
- type Filter
- type HistogramAggOptions
- type IterateStyle
- type Logs
- type Operator
- type QueryMeta
- type ResultSkip
- type Selector
- type Storage
- type TermsAggOptions
- type UniqueId
Constants ¶
View Source
const ( Default = IterateStyle(0) SearchAfter = IterateStyle(1) Scroll = IterateStyle(2) )
View Source
const ( AggregationHistogram = AggregationType("histogram") AggregationTerms = AggregationType("terms") )
Variables ¶
View Source
var DefaultComparer = Comparer{}
DefaultComparer
Functions ¶
Types ¶
type Aggregation ¶ added in v1.5.0
type Aggregation struct {
*Selector
Aggs []*AggregationDescriptor
}
type AggregationBucket ¶ added in v1.5.0
type AggregationBucket struct {
Key interface{}
Count int64
}
type AggregationDescriptor ¶ added in v1.5.0
type AggregationDescriptor struct {
Name string
Field string
Typ AggregationType
Options interface{}
}
type AggregationResponse ¶ added in v1.5.0
type AggregationResponse struct {
Total int64
Aggregations map[string]*AggregationResult
}
type AggregationResult ¶ added in v1.5.0
type AggregationResult struct {
Buckets []*AggregationBucket
}
type AggregationType ¶ added in v1.5.0
type AggregationType string
type Aggregator ¶ added in v1.5.0
type Aggregator interface {
Aggregate(ctx context.Context, req *Aggregation) (*AggregationResponse, error)
}
type HistogramAggOptions ¶ added in v1.5.0
type IterateStyle ¶ added in v1.5.0
type IterateStyle int32
type QueryMeta ¶ added in v1.5.0
type QueryMeta struct {
OrgNames []string
MspEnvIds []string
Highlight bool
PreferredBufferSize int
PreferredIterateStyle IterateStyle
}
type ResultSkip ¶ added in v1.5.0
type Selector ¶ added in v1.4.0
type Selector struct {
Start int64
End int64
Scheme string
Filters []*Filter
Debug bool
Meta QueryMeta
Skip ResultSkip
Options map[string]interface{}
}
Selector .
type Storage ¶ added in v1.4.0
type Storage interface {
NewWriter(ctx context.Context) (storekit.BatchWriter, error)
Iterator(ctx context.Context, sel *Selector) (storekit.Iterator, error)
}
Storage .
type TermsAggOptions ¶ added in v1.5.0
type TermsAggOptions struct {
Size int64
Missing interface{}
}
Click to show internal directories.
Click to hide internal directories.