v1

package
v0.59.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TenantId           string
	Token              string
	HostPort           string
	ServerURL          string
	Namespace          string
	NoGrpcRetry        bool
	CloudRegisterID    string
	RawRunnableActions []string
	AutoscalingTarget  string
	TLS                *TLSConfig
}

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.

Jump to

Keyboard shortcuts

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