Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
v1/server/oas/gen
Package gen provides primitives to interact with the openapi HTTP API.
|
Package gen provides primitives to interact with the openapi HTTP API. |
|
cmd
|
|
|
hatchet-admin
command
|
|
|
hatchet-api
command
|
|
|
hatchet-cli
command
|
|
|
hatchet-cli/cli/internal/mcp
Package mcp implements the local `hatchet mcp` stdio server that lets AI coding agents verify their work against a running Hatchet deployment, plus the grant store that controls which CLI profiles the server may use.
|
Package mcp implements the local `hatchet mcp` stdio server that lets AI coding agents verify their work against a running Hatchet deployment, plus the grant store that controls which CLI profiles the server may use. |
|
hatchet-engine
command
|
|
|
hatchet-lite
command
|
|
|
hatchet-loadtest
command
|
|
|
hatchet-loadtest/go
command
Command hatchet-loadtest-go-worker is a basic, standalone Go SDK worker you can run alongside `cmd/hatchet-loadtest --externalWorker`.
|
Command hatchet-loadtest-go-worker is a basic, standalone Go SDK worker you can run alongside `cmd/hatchet-loadtest --externalWorker`. |
|
hatchet-migrate
command
|
|
|
hatchet-staticfileserver
command
|
|
|
examples
|
|
|
go/affinity-workers
command
|
|
|
go/batch_assign
command
|
|
|
go/bulk-operations
command
|
|
|
go/bulk-operations/cancel
command
|
|
|
go/cancellations
command
|
|
|
go/child-workflows
command
|
|
|
go/concurrency
command
|
|
|
go/conditions
command
|
|
|
go/cron
command
|
|
|
go/dag
command
|
|
|
go/durable
command
|
|
|
go/durable/event
command
|
|
|
go/durable/eviction
command
|
|
|
go/durable/eviction/emit
command
|
|
|
go/durable/eviction/trigger
command
|
|
|
go/durable/sleep
command
|
|
|
go/events
command
|
|
|
go/guides/ai-agents
command
|
|
|
go/guides/batch-processing
command
|
|
|
go/guides/document-processing
command
|
|
|
go/guides/evaluator-optimizer
command
|
|
|
go/guides/event-driven
command
|
|
|
go/guides/human-in-the-loop
command
|
|
|
go/guides/llm-pipelines
command
|
|
|
go/guides/multi-agent
command
|
|
|
go/guides/parallelization
command
|
|
|
go/guides/rag-and-indexing
command
|
|
|
go/guides/routing
command
|
|
|
go/guides/scheduled-jobs
command
|
|
|
go/guides/streaming
command
|
|
|
go/guides/web-scraping
command
|
|
|
go/guides/webhook-processing
command
|
|
|
go/idempotency
command
|
|
|
go/idempotency/trigger
command
|
|
|
go/idempotency/worker
command
|
|
|
go/logs_test
command
|
|
|
go/manual-slot-release
command
|
|
|
go/migration-guides
Package migrationguides holds the Go code rendered into the migration guides.
|
Package migrationguides holds the Go code rendered into the migration guides. |
|
go/on-event
command
|
|
|
go/on-failure
command
|
|
|
go/opentelemetry_instrumentation
command
|
|
|
go/panic-handler
command
|
|
|
go/priority
command
|
|
|
go/rate-limiting
command
|
|
|
go/retries
command
|
|
|
go/retries-concurrency
command
|
|
|
go/run-with-metadata
command
|
|
|
go/runtime-affinity
command
|
|
|
go/sdk-migration
command
|
|
|
go/setup
command
|
|
|
go/simple
command
|
|
|
go/slot-cost
command
|
|
|
go/streaming
command
|
|
|
go/streaming/consumer
command
|
|
|
go/streaming/server
command
|
|
|
go/streaming/worker
command
|
|
|
go/stubs
command
|
|
|
go/timeouts
command
|
|
|
go/webhooks
command
|
|
|
go/with-workflows
command
|
|
|
oas
command
patch-api-resources patches the generated Api.ts file to attach x-resources metadata from the OpenAPI spec to each API method, enabling callers to check resource scope at runtime:
|
patch-api-resources patches the generated Api.ts file to attach x-resources metadata from the OpenAPI spec to each API method, enabling callers to check resource scope at runtime: |
|
internal
|
|
|
integrations/ingestors/sns
Package sns provides helper functions for verifying and processing Amazon AWS SNS HTTP POST payloads.
|
Package sns provides helper functions for verifying and processing Amazon AWS SNS HTTP POST payloads. |
|
operator/claimer
Package claimer hosts the operators a dispatcher claims.
|
Package claimer hosts the operators a dispatcher claims. |
|
operator/hostinproc
Package hostinproc is the in-process operator host: it implements pkg/operator.Host inside the dispatcher process over internal/services/operatorsvc, the same session logic the OperatorService handlers serve to operators that run outside the engine.
|
Package hostinproc is the in-process operator host: it implements pkg/operator.Host inside the dispatcher process over internal/services/operatorsvc, the same session logic the OperatorService handlers serve to operators that run outside the engine. |
|
services/grpcoperator
Package grpcoperator serves v1.OperatorService, the engine API for operators that run outside the engine process (kind = GRPC in v1_operator).
|
Package grpcoperator serves v1.OperatorService, the engine API for operators that run outside the engine process (kind = GRPC in v1_operator). |
|
services/operatorsvc
Package operatorsvc holds the engine-side logic of an operator session: registering the operator and its worker, opening and closing the session that makes the worker live, applying action set deltas, authorizing an operator and its workers, and opening durable invocations.
|
Package operatorsvc holds the engine-side logic of an operator session: registering the operator and its worker, opening and closing the session that makes the worker live, applying action set deltas, authorizing an operator and its workers, and opening durable invocations. |
|
services/operatorsvc/operatorsvctest
Package operatorsvctest holds in-memory doubles for the stores and the dispatcher an operator session talks to.
|
Package operatorsvctest holds in-memory doubles for the stores and the dispatcher an operator session talks to. |
|
services/shared/rpcstream
Package rpcstream holds helpers shared by the engine's streaming RPC handlers.
|
Package rpcstream holds helpers shared by the engine's streaming RPC handlers. |
|
pkg
|
|
|
authmode/keyset/gen
command
Command gen regenerates the embedded auth-disabled API token (keyset/token.jwt), signed with the committed private keyset.
|
Command gen regenerates the embedded auth-disabled API token (keyset/token.jwt), signed with the committed private keyset. |
|
client
Deprecated: This package is part of the legacy v0 workflow definition system.
|
Deprecated: This package is part of the legacy v0 workflow definition system. |
|
client/cloud/rest
Package rest provides primitives to interact with the openapi HTTP API.
|
Package rest provides primitives to interact with the openapi HTTP API. |
|
client/create
Deprecated: This package is part of the legacy v0 workflow definition system.
|
Deprecated: This package is part of the legacy v0 workflow definition system. |
|
client/operatorclient
Package operatorclient connects an out-of-process operator to the engine's OperatorService: one Connect call registers one worker and returns the Session that streams its assigned actions, keeps its action set up to date and reports task progress.
|
Package operatorclient connects an out-of-process operator to the engine's OperatorService: one Connect call registers one worker and returns the Session that streams its assigned actions, keeps its action set up to date and reports task progress. |
|
client/rest
Package rest provides primitives to interact with the openapi HTTP API.
|
Package rest provides primitives to interact with the openapi HTTP API. |
|
client/streaming
Package streaming holds the machinery every long-lived gRPC stream client in this module shares: a stream whose underlying client is replaced on reconnect, the receive loop that drives it with backoff, and the error classification that decides between reconnecting and stopping.
|
Package streaming holds the machinery every long-lived gRPC stream client in this module shares: a stream whose underlying client is replaced on reconnect, the receive loop that drives it with backoff, and the error classification that decides between reconnecting and stopping. |
|
cmdutils
Adapted from: https://github.com/hatchet-dev/hatchet-v1-archived/blob/3c2c13168afa1af68d4baaf5ed02c9d49c5f0323/cmd/cmdutils/interrupt.go
|
Adapted from: https://github.com/hatchet-dev/hatchet-v1-archived/blob/3c2c13168afa1af68d4baaf5ed02c9d49c5f0323/cmd/cmdutils/interrupt.go |
|
config/cli/profilestore
Package profilestore is the shared implementation of the Hatchet CLI's profile store (~/.hatchet/profiles.yaml by default).
|
Package profilestore is the shared implementation of the Hatchet CLI's profile store (~/.hatchet/profiles.yaml by default). |
|
integrations/metrics/prometheus
Package prometheus registers the engine Prometheus collectors (global and tenant-labeled task metrics, pub/sub) and gates tenant series on entitlement.
|
Package prometheus registers the engine Prometheus collectors (global and tenant-labeled task metrics, pub/sub) and gates tenant series on entitlement. |
|
migratediag
Package migratediag provides redacted DSN summaries and uniform migration phase errors for hatchet-migrate and related migration binaries.
|
Package migratediag provides redacted DSN summaries and uniform migration phase errors for hatchet-migrate and related migration binaries. |
|
operator/hostgrpc
Package hostgrpc is the out-of-process operator host: it implements pkg/operator.Host over pkg/client/operatorclient, speaking OperatorService to the engine with a per-tenant API token from a TokenSource.
|
Package hostgrpc is the out-of-process operator host: it implements pkg/operator.Host over pkg/client/operatorclient, speaking OperatorService to the engine with a per-tenant API token from a TokenSource. |
|
operator/operatortest
Package operatortest holds a sample contract operator for tests.
|
Package operatortest holds a sample contract operator for tests. |
|
operator/safeclient
Package safeclient provides an SSRF-hardened HTTP client for delivering outbound requests to user-supplied endpoints.
|
Package safeclient provides an SSRF-hardened HTTP client for delivering outbound requests to user-supplied endpoints. |
|
v1
Deprecated: This package is part of the old generics-based v1 Go SDK.
|
Deprecated: This package is part of the old generics-based v1 Go SDK. |
|
v1/factory
Deprecated: This package is part of the legacy v0 workflow definition system.
|
Deprecated: This package is part of the legacy v0 workflow definition system. |
|
v1/features
Deprecated: This package is part of the legacy v0 workflow definition system.
|
Deprecated: This package is part of the legacy v0 workflow definition system. |
|
v1/task
Deprecated: This package is part of the old generics-based v1 Go SDK.
|
Deprecated: This package is part of the old generics-based v1 Go SDK. |
|
v1/worker
Deprecated: This package is part of the old generics-based v1 Go SDK.
|
Deprecated: This package is part of the old generics-based v1 Go SDK. |
|
v1/workflow
Deprecated: This package is part of the old generics-based v1 Go SDK.
|
Deprecated: This package is part of the old generics-based v1 Go SDK. |
|
worker/condition
Deprecated: This package is part of the legacy v0 workflow definition system.
|
Deprecated: This package is part of the legacy v0 workflow definition system. |
|
sdks
|
|
|
go
Define workflows that can declare tasks and be run, scheduled, and so on.
|
Define workflows that can declare tasks and be run, scheduled, and so on. |
|
go/docs/generator
command
Command generator emits the Go SDK reference docs (fumadocs .mdx pages) from the SDK's exported API and doc comments.
|
Command generator emits the Go SDK reference docs (fumadocs .mdx pages) from the SDK's exported API and doc comments. |
|
go/examples/affinity-workers
command
|
|
|
go/examples/batch_assign
command
|
|
|
go/examples/bulk-operations
command
|
|
|
go/examples/cancellations
command
|
|
|
go/examples/child-workflows
command
|
|
|
go/examples/concurrency
command
|
|
|
go/examples/conditions
command
|
|
|
go/examples/cron
command
|
|
|
go/examples/dag
command
|
|
|
go/examples/durable/event
command
|
|
|
go/examples/durable/eviction
command
|
|
|
go/examples/durable/sleep
command
|
|
|
go/examples/events
command
|
|
|
go/examples/idempotency
command
|
|
|
go/examples/logs_test
command
|
|
|
go/examples/manual-slot-release
command
|
|
|
go/examples/migration-guides
Package migrationguides holds the Go code rendered into the migration guides.
|
Package migrationguides holds the Go code rendered into the migration guides. |
|
go/examples/on-event
command
|
|
|
go/examples/on-failure
command
|
|
|
go/examples/panic-handler
command
|
|
|
go/examples/priority
command
|
|
|
go/examples/rate-limiting
command
|
|
|
go/examples/retries
command
|
|
|
go/examples/retries-concurrency
command
|
|
|
go/examples/run-with-metadata
command
|
|
|
go/examples/runtime-affinity
command
|
|
|
go/examples/sdk-migration
command
|
|
|
go/examples/setup
command
|
|
|
go/examples/simple
command
|
|
|
go/examples/slot-cost
command
|
|
|
go/examples/streaming/consumer
command
|
|
|
go/examples/streaming/server
command
|
|
|
go/examples/streaming/worker
command
|
|
|
go/examples/stubs
command
|
|
|
go/examples/timeouts
command
|
|
|
go/examples/webhooks
command
|
|
|
go/examples/with-workflows
command
|
|
|
go/features
package features provides functionality for interacting with hatchet features.
|
package features provides functionality for interacting with hatchet features. |
|
go/internal
Package internal provides internal functionality for the Hatchet Go SDK
|
Package internal provides internal functionality for the Hatchet Go SDK |
|
go/opentelemetry
Package opentelemetry provides OpenTelemetry instrumentation for the Hatchet Go SDK.
|
Package opentelemetry provides OpenTelemetry instrumentation for the Hatchet Go SDK. |
|
sql
|
|
|
atlas-to-goose
command
|
Click to show internal directories.
Click to hide internal directories.