Documentation
¶
Overview ¶
Package executor defines the specifications accessing underlying data repositories.
Index ¶
- func WithDistributedExecutionContext(ctx context.Context, ec DistributedExecutionContext) context.Context
- type DistributedExecutionContext
- type DistributedExecutionContextKey
- type MIterator
- type MeasureExecutable
- type MeasureExecutionContext
- type StreamExecutable
- type StreamExecutionContext
- type TraceExecutable
- type TraceExecutionContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDistributedExecutionContext ¶ added in v0.5.0
func WithDistributedExecutionContext(ctx context.Context, ec DistributedExecutionContext) context.Context
WithDistributedExecutionContext returns a new context with distributed execution context.
Types ¶
type DistributedExecutionContext ¶ added in v0.5.0
type DistributedExecutionContext interface {
bus.Broadcaster
TimeRange() *modelv1.TimeRange
NodeSelectors() map[string][]string
}
DistributedExecutionContext allows retrieving data through the distributed module.
func FromDistributedExecutionContext ¶ added in v0.5.0
func FromDistributedExecutionContext(ctx context.Context) DistributedExecutionContext
FromDistributedExecutionContext returns the distributed execution context from context.Context.
type DistributedExecutionContextKey ¶ added in v0.5.0
type DistributedExecutionContextKey struct{}
DistributedExecutionContextKey is the key of distributed execution context in context.Context.
type MeasureExecutable ¶
MeasureExecutable allows querying in the measure schema.
type MeasureExecutionContext ¶
type MeasureExecutionContext interface {
Query(ctx context.Context, opts model.MeasureQueryOptions) (model.MeasureQueryResult, error)
}
MeasureExecutionContext allows retrieving data through the measure module.
type StreamExecutable ¶
StreamExecutable allows querying in the stream schema.
type StreamExecutionContext ¶
type StreamExecutionContext interface {
Query(ctx context.Context, opts model.StreamQueryOptions) (model.StreamQueryResult, error)
}
StreamExecutionContext allows retrieving data through the stream module.
type TraceExecutable ¶ added in v0.9.0
type TraceExecutable interface {
Execute(context.Context) (iter.Iterator[model.TraceResult], error)
Close()
}
TraceExecutable allows querying in the trace schema.
type TraceExecutionContext ¶ added in v0.9.0
type TraceExecutionContext interface {
Query(ctx context.Context, opts model.TraceQueryOptions) (model.TraceQueryResult, error)
}
TraceExecutionContext allows retrieving data through the trace module.