activities

package
v0.19.854 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: AGPL-3.0 Imports: 10 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) CreateQueueSignal

func (a *Activities) CreateQueueSignal(ctx context.Context, req *CreateQueueSignalRequest) (*app.QueueSignal, error)

@temporal-gen-v2 activity @start-to-close-timeout 1m

type CreateQueueSignalRequest

type CreateQueueSignalRequest struct {
	QueueID string        `json:"queue_id" validate:"required"`
	Signal  signal.Signal `json:"signal" validate:"required"`

	// OwnerID and OwnerType are optional — when set they populate the polymorphic
	// owner association on the created QueueSignal so no separate UPDATE is needed.
	OwnerID   string `json:"owner_id,omitempty"`
	OwnerType string `json:"owner_type,omitempty"`
}

type Params

type Params struct {
	fx.In

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

Jump to

Keyboard shortcuts

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