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

activities

package
v0.19.1253 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activities

type Activities struct {
	// contains filtered or unexported fields
}

func New

func New(params Params) *Activities

func (*Activities) SendSignal added in v0.19.976

func (a *Activities) SendSignal(ctx context.Context, req SendSignalRequest) error

@temporal-gen-v2 activity @start-to-close-timeout 30s @max-retries 10

type CallbackInfo added in v0.19.976

type CallbackInfo struct {
	WorkflowID string `json:"callback_workflow_id"`
	SignalName string `json:"callback_signal_name"`
	Namespace  string `json:"callback_namespace"`
}

CallbackInfo describes where to send a Temporal signal when an operation completes. Used to replace activity-based blocking waits with zero-cost workflow signal channel receives.

type Params

type Params struct {
	fx.In

	V       *validator.Validate
	DB      *gorm.DB `name:"psql"`
	TClient temporalclient.Client
}

type SendSignalRequest added in v0.19.976

type SendSignalRequest struct {
	Callback CallbackInfo `json:"callback"`
	Payload  any          `json:"payload"`
}

Jump to

Keyboard shortcuts

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