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

activities

package
v0.19.1163 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: AGPL-3.0 Imports: 17 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

func (*Activities) IncrementQueueSignalExecutionCount added in v0.19.894

func (a *Activities) IncrementQueueSignalExecutionCount(ctx context.Context, req *IncrementQueueSignalExecutionCountRequest) error

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

func (*Activities) ResetStaleInProgressSignals added in v0.19.947

func (a *Activities) ResetStaleInProgressSignals(ctx context.Context, req *ResetStaleInProgressSignalsRequest) error

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

func (*Activities) UpdateQueueSignalRunID added in v0.19.911

func (a *Activities) UpdateQueueSignalRunID(ctx context.Context, req *UpdateQueueSignalRunIDRequest) error

@temporal-gen-v2 activity @start-to-close-timeout 10s @local

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"`
	ExpiresAt *time.Time `json:"expires_at,omitempty"`
}

type IncrementQueueSignalExecutionCountRequest added in v0.19.894

type IncrementQueueSignalExecutionCountRequest struct {
	QueueSignalID string `json:"queue_signal_id" validate:"required"`
}

type Params

type Params struct {
	fx.In

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

type ResetStaleInProgressSignalsRequest added in v0.19.947

type ResetStaleInProgressSignalsRequest struct {
	QueueID string `json:"queue_id" validate:"required"`
}

type UpdateQueueSignalRunIDRequest added in v0.19.911

type UpdateQueueSignalRunIDRequest struct {
	QueueSignalID string `json:"queue_signal_id" validate:"required"`
	RunID         string `json:"run_id" validate:"required"`
}

Jump to

Keyboard shortcuts

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