addsearchattributes

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TaskQueueName is the task queue name.
	TaskQueueName = "temporal-sys-add-search-attributes-task-queue"
	// WorkflowName is the workflow name.
	WorkflowName = "temporal-sys-add-search-attributes-workflow"
)

Variables

View Source
var (
	ErrUnableToUpdateESMapping      = errors.New("unable to update Elasticsearch mapping")
	ErrUnableToExecuteActivity      = errors.New("unable to execute activity")
	ErrUnableToGetSearchAttributes  = errors.New("unable to get search attributes from cluster metadata")
	ErrUnableToSaveSearchAttributes = errors.New("unable to save search attributes to cluster metadata")
)

Functions

func AddSearchAttributesWorkflow

func AddSearchAttributesWorkflow(ctx workflow.Context, params WorkflowParams) error

AddSearchAttributesWorkflow is the workflow that adds search attributes to the cluster for specific index.

func New

func New(
	sdkClient sdkclient.Client,
	esClient client.Client,
	saManager searchattribute.Manager,
	metricsClient metrics.Client,
	logger log.Logger,
) *addSearchAttributes

New returns a new instance of addSearchAttributes.

Types

type WorkflowParams

type WorkflowParams struct {
	// Elasticsearch index name. Can be empty string if Elasticsearch is not configured.
	IndexName string
	// Search attributes that need to be added to the index.
	CustomAttributesToAdd map[string]enumspb.IndexedValueType
	// If true skip Elasticsearch schema update and only update cluster metadata.
	SkipSchemaUpdate bool
}

WorkflowParams is the parameters for add search attributes workflow.

Jump to

Keyboard shortcuts

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