Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v0.83.32 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyNamespace

func ApplyNamespace(resourceName string, namespace *string) string

func BindAllEnv

func BindAllEnv(v *viper.Viper)

Types

type ClientConfig

type ClientConfig struct {
	TenantId    string
	Token       string
	NoGrpcRetry bool

	ServerURL            string
	GRPCBroadcastAddress string

	Logger shared.LoggerConfigFile

	// TLSConfig will be nil if the strategy is "none"
	TLSConfig *tls.Config

	Namespace string

	CloudRegisterID *string
	RunnableActions []string

	PresetWorkerLabels map[string]string

	DisableGzipCompression bool
}

type ClientConfigFile

type ClientConfigFile struct {
	TenantId string `mapstructure:"tenantId" json:"tenantId,omitempty"`

	Token string `mapstructure:"token" json:"token,omitempty"`

	HostPort string `mapstructure:"hostPort" json:"hostPort,omitempty"`

	// ServerURL is the URL of the Hatchet API server, not to be confused with HostPort, which is the host and port
	// corresponding to the gRPC engine service.
	ServerURL string `mapstructure:"serverURL" json:"serverURL,omitempty"`

	Logger shared.LoggerConfigFile `mapstructure:"log" json:"log,omitempty"`

	TLS ClientTLSConfigFile `mapstructure:"tls" json:"tls,omitempty"`

	Namespace string `mapstructure:"namespace" json:"namespace,omitempty"`

	NoGrpcRetry bool `mapstructure:"noGrpcRetry" json:"noGrpcRetry,omitempty"`

	CloudRegisterID *string `mapstructure:"cloudRegisterID" json:"cloudRegisterID,omitempty"`

	RawRunnableActions []string `mapstructure:"runnableActions" json:"runnableActions,omitempty"`

	AutoscalingTarget string `mapstructure:"autoscalingTarget" json:"autoscalingTarget,omitempty"`

	DisableGzipCompression bool `mapstructure:"disableGzipCompression" json:"disableGzipCompression,omitempty"`
}

type ClientTLSConfigFile

type ClientTLSConfigFile struct {
	Base shared.TLSConfigFile `mapstructure:"base" json:"base,omitempty"`

	TLSServerName string `mapstructure:"tlsServerName" json:"tlsServerName,omitempty"`
}

Jump to

Keyboard shortcuts

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