Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HatchetClient ¶
type HatchetClient interface {
// V0 returns the underlying V0 client for backward compatibility.
V0() v0Client.Client
// Worker creates and configures a new worker with the provided options and optional configuration functions.
// @example
// “`go
// worker, err := hatchet.Worker(worker.CreateOpts{
// Name: "my-worker",
// },
// v1.WithWorkflows(simple)
// )
// “`
Worker(opts worker.WorkerOpts) (worker.Worker, error)
Metrics() features.MetricsClient
RateLimits() features.RateLimitsClient
Runs() features.RunsClient
Workers() features.WorkersClient
Workflows() features.WorkflowsClient
Crons() features.CronsClient
Schedules() features.SchedulesClient
Events() v0Client.EventClient
}
HatchetClient is the main interface for interacting with the Hatchet task orchestrator. It provides access to workflow creation, worker registration, and legacy V0 client functionality.
func NewHatchetClient ¶
func NewHatchetClient(config ...Config) (HatchetClient, error)
NewHatchetClient creates a new V1 Hatchet client with the provided configuration. If no configuration is provided, default settings will be used.
type TLSConfig ¶
type TLSConfig struct {
Base *shared.TLSConfigFile
TLSServerName string
}
Directories
¶
| Path | Synopsis |
|---|---|
|
package features provides functionality for interacting with hatchet features.
|
package features provides functionality for interacting with hatchet features. |
|
package worker provides functionality for creating and managing hatchet workers.
|
package worker provides functionality for creating and managing hatchet workers. |
|
Package workflow provides functionality for defining, managing, and executing workflows in Hatchet.
|
Package workflow provides functionality for defining, managing, and executing workflows in Hatchet. |
Click to show internal directories.
Click to hide internal directories.