Files
hatchet/pkg/constants/metadata.go
Mohammed Nafees 34074affd8 Add contextual data for trigger via events (#2092)
* add contextual data for trigger via events

* fix corrId

* string needed
2025-08-06 16:52:06 -04:00

35 lines
1.1 KiB
Go

package constants
type MetadataKey string
const (
CorrelationIdKey MetadataKey = "correlationId"
ResourceIdKey MetadataKey = "resourceId"
ResourceTypeKey MetadataKey = "resourceType"
GRPCMethodKey MetadataKey = "grpc_method"
EventIDKey MetadataKey = "hatchet__event_id"
EventKeyKey MetadataKey = "hatchet__event_key"
CronExpressionKey MetadataKey = "hatchet__cron_expression"
CronNameKey MetadataKey = "hatchet__cron_name"
)
func (k MetadataKey) String() string {
return string(k)
}
type ResourceTypeValue string
const (
ResourceTypeApiToken ResourceTypeValue = "api-token"
ResourceTypeTenantMember ResourceTypeValue = "tenant-member"
ResourceTypeTenantInvite ResourceTypeValue = "tenant-invite"
ResourceTypeWorkflow ResourceTypeValue = "workflow"
ResourceTypeWorkflowRun ResourceTypeValue = "workflow-run"
ResourceTypeScheduledWorkflow ResourceTypeValue = "scheduled-workflow"
ResourceTypeEvent ResourceTypeValue = "event"
)
func (k ResourceTypeValue) String() string {
return string(k)
}