cctx

package
v0.19.909 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

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"`
	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