mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-05 16:19:43 -06:00
35 lines
1.1 KiB
Go
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)
|
|
}
|