cancelactivity

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

Steps to run this sample:

  1. You need a Temporal service running. See details in README.md
  2. Run the following command to start the worker
go run cancelactivity/worker/main.go
  1. Run the following command to start the workflow
go run cancelactivity/starter/main.go
  1. Run the following command to cancel the workflow
go run cancelactivity/cancel/main.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Workflow

func Workflow(ctx workflow.Context) error

Workflow workflow

Types

type Activities

type Activities struct {
}

func (*Activities) ActivityToBeCanceled

func (a *Activities) ActivityToBeCanceled(ctx context.Context) (string, error)

func (*Activities) ActivityToBeSkipped

func (a *Activities) ActivityToBeSkipped(ctx context.Context) error

func (*Activities) CleanupActivity

func (a *Activities) CleanupActivity(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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