testworker

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Taskqueue = "greetings"

Variables

This section is empty.

Functions

func GreetingSample

func GreetingSample(ctx workflow.Context) (string, error)

GreetingSample workflow definition. This greetings sample workflow executes 3 activities in sequential. It gets greeting and name from 2 different activities, and then pass greeting and name as input to a 3rd activity to generate final greetings.

Types

type Activities

type Activities struct {
	Name     string
	Greeting string
}

func (*Activities) GetGreeting

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

GetGreeting Activity.

func (*Activities) GetName

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

GetName Activity.

func (*Activities) SayGreeting

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

SayGreeting Activity.

type Worker

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

func NewWorker

func NewWorker(client client.Client) (*Worker, error)

func (*Worker) Start

func (w *Worker) Start() error

func (*Worker) Stop

func (w *Worker) Stop()

Jump to

Keyboard shortcuts

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