sdk

package
v1.36.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package sdk is the Hanzo Tasks workflow SDK. Native ZAP, no upstream temporal.io imports anywhere in this tree.

Layout:

pkg/sdk/client    — Dial, Options, StartWorkflowOptions, WorkflowRun
pkg/sdk/worker    — New, Start, Stop, RegisterWorkflow, RegisterActivity
pkg/sdk/workflow  — Context, Future, Selector, Channel, Timer,
                    Signal, ExecuteActivity, WithActivityOptions
pkg/sdk/activity  — GetLogger, RecordHeartbeat, GetInfo
pkg/sdk/temporal  — RetryPolicy, ActivityError, error constructors

All traffic on the wire is ZAP. Schemas live under ../../schema. Transport is luxfi/zap on _tasks._tcp:9652. No gRPC, no protobuf, no gRPC-Web.

Migration contract (applies to base / commerce / ta / any Hanzo Go service that ran Temporal workflows):

go.temporal.io/sdk/client    → github.com/hanzoai/tasks/pkg/sdk/client
go.temporal.io/sdk/worker    → github.com/hanzoai/tasks/pkg/sdk/worker
go.temporal.io/sdk/workflow  → github.com/hanzoai/tasks/pkg/sdk/workflow
go.temporal.io/sdk/activity  → github.com/hanzoai/tasks/pkg/sdk/activity
go.temporal.io/sdk/temporal  → github.com/hanzoai/tasks/pkg/sdk/temporal

CI enforces zero `go.temporal.io` imports outside pkg/sdk once migration finishes.

Directories

Path Synopsis
Package activity provides the call-site helpers that activity code uses inside a Hanzo Tasks worker.
Package activity provides the call-site helpers that activity code uses inside a Hanzo Tasks worker.
Package client is the Hanzo Tasks workflow client.
Package client is the Hanzo Tasks workflow client.
Package converter provides the EncodedValue surface returned by Client.QueryWorkflow and other RPCs that ship an opaque payload.
Package converter provides the EncodedValue surface returned by Client.QueryWorkflow and other RPCs that ship an opaque payload.
Package temporal provides native Hanzo Tasks workflow primitives (retry policy, error model, failure serialisation) with zero dependency on any go.temporal.io/* package.
Package temporal provides native Hanzo Tasks workflow primitives (retry policy, error model, failure serialisation) with zero dependency on any go.temporal.io/* package.
Package worker is the Hanzo Tasks worker runtime.
Package worker is the Hanzo Tasks worker runtime.
Package workflow is the workflow-code-facing API of the Hanzo Tasks SDK.
Package workflow is the workflow-code-facing API of the Hanzo Tasks SDK.

Jump to

Keyboard shortcuts

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