Documentation ¶
Overview ¶
Package executor defines the specifications accessing underlying data repositories.
Index ¶
- func WithDistributedExecutionContext(ctx context.Context, ec DistributedExecutionContext) context.Context
- func WithMeasureExecutionContext(ctx context.Context, ec MeasureExecutionContext) context.Context
- func WithStreamExecutionContext(ctx context.Context, ec StreamExecutionContext) context.Context
- type DistributedExecutionContext
- type DistributedExecutionContextKey
- type MIterator
- type MeasureExecutable
- type MeasureExecutionContext
- type MeasureExecutionContextKey
- type StreamExecutable
- type StreamExecutionContext
- type StreamExecutionContextKey
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.
func WithMeasureExecutionContext ¶ added in v0.5.0
func WithMeasureExecutionContext(ctx context.Context, ec MeasureExecutionContext) context.Context
WithMeasureExecutionContext returns a new context with measure execution context.
func WithStreamExecutionContext ¶ added in v0.5.0
func WithStreamExecutionContext(ctx context.Context, ec StreamExecutionContext) context.Context
WithStreamExecutionContext returns a new context with stream execution context.
Types ¶
type DistributedExecutionContext ¶ added in v0.5.0
type DistributedExecutionContext interface { bus.Broadcaster TimeRange() *modelv1.TimeRange }
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.
func FromMeasureExecutionContext ¶ added in v0.5.0
func FromMeasureExecutionContext(ctx context.Context) MeasureExecutionContext
FromMeasureExecutionContext returns the measure execution context from context.Context.
type MeasureExecutionContextKey ¶ added in v0.5.0
type MeasureExecutionContextKey struct{}
MeasureExecutionContextKey is the key of measure execution context in context.Context.
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.
func FromStreamExecutionContext ¶ added in v0.5.0
func FromStreamExecutionContext(ctx context.Context) StreamExecutionContext
FromStreamExecutionContext returns the stream execution context from context.Context.
type StreamExecutionContextKey ¶ added in v0.5.0
type StreamExecutionContextKey struct{}
StreamExecutionContextKey is the key of stream execution context in context.Context.