interceptors

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkflowInboundCallsInterceptor

type WorkflowInboundCallsInterceptor = internal.WorkflowInboundCallsInterceptor

WorkflowInboundCallsInterceptor is an interface that can be implemented to intercept calls to the workflow. Use WorkflowInboundCallsInterceptorBase as a base struct for implementations that do not want to implement every method. Interceptor implementation must forward calls to the next in the interceptor chain. All code in the interceptor is executed in the workflow.Context of a workflow. So all the rules and restrictions that apply to the workflow code should be obeyed by the interceptor implementation. Use workflow.IsReplaying(ctx) to filter out duplicated calls.

type WorkflowInboundCallsInterceptorBase

type WorkflowInboundCallsInterceptorBase = internal.WorkflowInboundCallsInterceptorBase

WorkflowInboundCallsInterceptorBase is a noop implementation of WorkflowInboundCallsInterceptor that just forwards requests to the next link in an interceptor chain. To be used as base implementation of interceptors.

type WorkflowInterceptor

type WorkflowInterceptor = internal.WorkflowInterceptor

WorkflowInterceptor is used to create a single link in the interceptor chain. Called once per workflow execution replay.

type WorkflowOutboundCallsInterceptor

type WorkflowOutboundCallsInterceptor = internal.WorkflowOutboundCallsInterceptor

WorkflowOutboundCallsInterceptor is an interface that can be implemented to intercept calls to the SDK APIs done by the workflow code. Use worker.WorkflowOutboundCallsInterceptorBase as a base struct for implementations that do not want to implement every method. Interceptor implementation must forward calls to the next in the interceptor chain. All code in the interceptor is executed in the workflow.Context of a workflow. So all the rules and restrictions that apply to the workflow code should be obeyed by the interceptor implementation. Use workflow.IsReplaying(ctx) to filter out duplicated calls.

type WorkflowOutboundCallsInterceptorBase

type WorkflowOutboundCallsInterceptorBase = internal.WorkflowOutboundCallsInterceptorBase

WorkflowOutboundCallsInterceptorBase is a noop implementation of WorkflowOutboundCallsInterceptor that just forwards requests to the next link in an interceptor chain. To be used as base implementation of interceptors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL