patchxns

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go_temporal. DO NOT EDIT. versions:

protoc-gen-go_temporal 1.14.6-next (0ec9655dd1130535a5c8cfbda7a326aef9ac448a)
go go1.23.4
protoc (unknown)

source: test/patch/example.proto

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelFooServiceWorkflow

func CancelFooServiceWorkflow(ctx workflow.Context, workflowID string, runID string) error

CancelFooServiceWorkflow cancels an existing workflow

func CancelFooServiceWorkflowAsync

func CancelFooServiceWorkflowAsync(ctx workflow.Context, workflowID string, runID string) workflow.Future

CancelFooServiceWorkflowAsync cancels an existing workflow

func Foo

Foo executes a(n) test.patch.FooService.Foo workflow and blocks until error or response is received

func RegisterFooServiceActivities

func RegisterFooServiceActivities(r worker.ActivityRegistry, c patch.FooServiceClient, options ...*FooServiceOptions)

RegisterFooServiceActivities registers test.patch.FooService cross-namespace activities

Types

type FooRun

type FooRun interface {
	// Cancel cancels the workflow
	Cancel(workflow.Context) error

	// Future returns the inner workflow.Future
	Future() workflow.Future

	// Get returns the inner workflow.Future
	Get(workflow.Context) (*patch.FooOutput, error)

	// ID returns the workflow id
	ID() string
}

FooRun provides a handle to a test.patch.FooService.Foo workflow execution

func FooAsync

func FooAsync(ctx workflow.Context, req *patch.FooInput, opts ...*FooWorkflowOptions) (FooRun, error)

FooAsync executes a(n) test.patch.FooService.Foo workflow and returns a handle to the underlying activity

type FooServiceOptions

type FooServiceOptions struct {
	// contains filtered or unexported fields
}

FooServiceOptions is used to configure test.patch.FooService xns activity registration

func NewFooServiceOptions

func NewFooServiceOptions() *FooServiceOptions

NewFooServiceOptions initializes a new FooServiceOptions value

func (*FooServiceOptions) WithErrorConverter

func (opts *FooServiceOptions) WithErrorConverter(errorConverter func(error) error) *FooServiceOptions

WithErrorConverter overrides the default error converter applied to xns activity errors

func (*FooServiceOptions) WithFilter

func (opts *FooServiceOptions) WithFilter(filter func(string) string) *FooServiceOptions

Filter is used to filter registered xns activities or customize their name

type FooWorkflowOptions

type FooWorkflowOptions struct {
	ActivityOptions      *workflow.ActivityOptions
	Detached             bool
	HeartbeatInterval    time.Duration
	ParentClosePolicy    enumsv1.ParentClosePolicy
	StartWorkflowOptions *client.StartWorkflowOptions
}

FooWorkflowOptions are used to configure a(n) test.patch.FooService.Foo workflow execution

func NewFooWorkflowOptions

func NewFooWorkflowOptions() *FooWorkflowOptions

NewFooWorkflowOptions initializes a new FooWorkflowOptions value

func (*FooWorkflowOptions) WithActivityOptions

func (opts *FooWorkflowOptions) WithActivityOptions(ao workflow.ActivityOptions) *FooWorkflowOptions

WithActivityOptions can be used to customize the activity options

func (*FooWorkflowOptions) WithDetached

func (opts *FooWorkflowOptions) WithDetached(d bool) *FooWorkflowOptions

WithDetached can be used to start a workflow execution and exit immediately

func (*FooWorkflowOptions) WithHeartbeatInterval

func (opts *FooWorkflowOptions) WithHeartbeatInterval(d time.Duration) *FooWorkflowOptions

WithHeartbeatInterval can be used to customize the activity heartbeat interval

func (*FooWorkflowOptions) WithParentClosePolicy

func (opts *FooWorkflowOptions) WithParentClosePolicy(policy enumsv1.ParentClosePolicy) *FooWorkflowOptions

WithParentClosePolicy can be used to customize the cancellation propagation behavior

func (*FooWorkflowOptions) WithStartWorkflow

func (opts *FooWorkflowOptions) WithStartWorkflow(swo client.StartWorkflowOptions) *FooWorkflowOptions

WithStartWorkflowOptions can be used to customize the start workflow options

Jump to

Keyboard shortcuts

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