activities

package
v0.19.976 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: AGPL-3.0 Imports: 13 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

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