Documentation
¶
Overview ¶
Package exec provides dependency-light execution context contracts shared by xdatly handlers and runtimes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCacheWarmup ¶
func WithCacheWarmup ¶
func WithCacheWarmup(ctx context.Context, phase WarmupPhase) context.Context
WithCacheWarmup marks a trusted runtime-owned warmup phase. Transport values must never be converted into this context capability.
Types ¶
type InvocationInfo ¶
type InvocationInfo struct {
// contains filtered or unexported fields
}
InvocationInfo is immutable execution metadata propagated through context. Private fields prevent consumers from changing the capability selected by the runtime after retrieving it.
func InvocationFromContext ¶
func InvocationFromContext(ctx context.Context) *InvocationInfo
InvocationFromContext returns request metadata when no explicit invocation descriptor has been installed.
func (*InvocationInfo) IsCacheWarmup ¶
func (i *InvocationInfo) IsCacheWarmup() bool
func (*InvocationInfo) MayBypassRowAuthorization ¶
func (i *InvocationInfo) MayBypassRowAuthorization() bool
MayBypassRowAuthorization reports an explicit runtime capability. Consumers should not infer authorization policy from IsCacheWarmup alone.
func (*InvocationInfo) Purpose ¶
func (i *InvocationInfo) Purpose() InvocationPurpose
func (*InvocationInfo) WarmupPhase ¶
func (i *InvocationInfo) WarmupPhase() WarmupPhase
type InvocationPurpose ¶
type InvocationPurpose uint8
InvocationPurpose identifies why a handler or predicate is executing.
const ( InvocationPurposeRequest InvocationPurpose = iota InvocationPurposeCacheWarmup )
type WarmupPhase ¶
type WarmupPhase uint8
WarmupPhase distinguishes warmup validation from the cache-filling phase.
const ( WarmupPhaseNone WarmupPhase = iota WarmupPhasePrepare WarmupPhaseFill )