metadata

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataScheduleID           string = "scheduleId"
	MetadataScheduleWorkflowName string = "scheduleWorkflowName"
	MetadataScheduleInput        string = "scheduleInput"
)
View Source
const (
	SearchAttributeDateTimeType    string = "datetime"
	SearchAttributeKeywordListType string = "keywordlist"
	SearchAttributeKeywordType     string = "keyword"
	SearchAttributeTextType        string = "text"
	SearchAttributeIntType         string = "int"
	SearchAttributeDoubleType      string = "double"
	SearchAttributeBooleanType     string = "bool"
)
View Source
const MaxHistoryLengthAttribute string = "canMaxHistoryLength"
View Source
const MetadataSearchAttribute string = "searchAttributes"

Variables

View Source
var ErrInvalidType = fmt.Errorf("invalid type")

Functions

func GetMaxHistoryLength added in v0.2.0

func GetMaxHistoryLength(doc *model.Workflow) (int, error)

func ParseSearchAttributes

func ParseSearchAttributes(ctx workflow.Context, metadata any) error

Types

type ScheduleInfo

type ScheduleInfo struct {
	ID           string
	WorkflowName string
	Input        []any
}

func GetScheduleInfo

func GetScheduleInfo(workflow *model.Workflow, envvars map[string]any) (*ScheduleInfo, error)

type SearchAttribute

type SearchAttribute struct {
	Type  string `json:"type"`
	Value any    `json:"value"` // If nil then the value is unset
}

Jump to

Keyboard shortcuts

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