cctx

package
v0.19.1303 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignalContext

type SignalContext struct {
	AccountID         string                     `json:"account_id,omitempty"`
	OrgID             string                     `json:"org_id,omitempty"`
	TraceID           string                     `json:"trace_id,omitempty"`
	WorkflowTelemetry cctxkeys.WorkflowTelemetry `json:"workflow_telemetry,omitempty"`
	LogStreamID       string                     `json:"log_stream_id,omitempty"`
}

SignalContext captures the request-scoped context values that must survive asynchronous enqueuing. It is stored as a JSONB column on QueueSignal so that the background enqueuer can restore the full context when processing the signal outside the original request goroutine.

func (SignalContext) GormDataType

func (SignalContext) GormDataType() string

GormDataType tells GORM to use the jsonb PostgreSQL type.

func (*SignalContext) Scan

func (sc *SignalContext) Scan(v interface{}) error

Scan implements database/sql.Scanner for reading JSONB from PostgreSQL.

func (SignalContext) Value

func (sc SignalContext) Value() (driver.Value, error)

Value implements driver.Valuer for writing JSONB to PostgreSQL.

Jump to

Keyboard shortcuts

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