helloworld

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Greet

func Greet(ctx workflow.Context, subject string) (string, error)

Greet implements a Temporal workflow that returns a salutation for a given subject.

func PickGreeting

func PickGreeting(ctx context.Context) (string, error)

PickGreeting is a Temporal activity that returns some greeting text.

func RegisterWorkflowsAndActivities

func RegisterWorkflowsAndActivities(r worker.Registry)

func TestIntercept

func TestIntercept(ctx context.Context) (string, error)

Types

type Interceptor

type Interceptor struct {
	interceptor.InterceptorBase
}

func NewTestInterceptor

func NewTestInterceptor() *Interceptor

type WorkflowInterceptor

type WorkflowInterceptor struct {
	interceptor.WorkflowInboundInterceptorBase
}

func (*WorkflowInterceptor) ExecuteWorkflow

func (i *WorkflowInterceptor) ExecuteWorkflow(ctx workflow.Context, in *interceptor.ExecuteWorkflowInput) (interface{}, error)

func (*WorkflowInterceptor) Init

Jump to

Keyboard shortcuts

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