searchattributes

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: 13 Imported by: 2

README

Steps to run this sample:

  1. Before running this, Temporal Server need to run with advanced visibility store. See https://github.com/temporalio/temporal/blob/master/docs/visibility-on-elasticsearch.md
  2. Run the following command to start the worker
go run searchattributes/worker/main.go
  1. Run the following command to start the example
go run searchattributes/starter/main.go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrClientNotFound when client is not found on context
	ErrClientNotFound = errors.New("failed to retrieve client from context")
)

Functions

func ListExecutions

func ListExecutions(ctx context.Context, query string) ([]*workflowpb.WorkflowExecutionInfo, error)

func SearchAttributesWorkflow

func SearchAttributesWorkflow(ctx workflow.Context) error

SearchAttributesWorkflow workflow definition

Types

type ClientKey

type ClientKey int

ClientKey is the key for lookup

const (
	// Namespace used for this sample. "default" namespace always exists on the server.
	Namespace = "default"
	// TemporalClientKey for retrieving client from context
	TemporalClientKey ClientKey = iota
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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