dynamic

package
v0.0.0-...-94a9b73 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

Invoking Activities by Name

The purpose of this sample is to demonstrate invocation of workflows and activities using name rather than strongly typed function.

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 dynamic/worker/main.go
  1. Run the following command to start the example
go run dynamic/starter/main.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SampleGreetingsWorkflow

func SampleGreetingsWorkflow(ctx workflow.Context) error

SampleGreetingsWorkflow Workflow.

Types

type Activities

type Activities struct{}

func (*Activities) GetGreeting

func (a *Activities) GetGreeting() (string, error)

Get Greeting Activity.

func (*Activities) GetName

func (a *Activities) GetName() (string, error)

Get Name Activity.

func (*Activities) SayGreeting

func (a *Activities) SayGreeting(greeting string, name string) (string, error)

Say Greeting Activity.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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