signaldb

package
v0.19.1306 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: AGPL-3.0 Imports: 11 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

View Source
const (
	MetadataEncodingKey  = "encoding"
	MetadataEncodingType = "nuon/signal"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PayloadConverter

type PayloadConverter struct{}

func NewPayloadConverter

func NewPayloadConverter() *PayloadConverter

func (*PayloadConverter) Encoding

func (c *PayloadConverter) Encoding() string

func (*PayloadConverter) FromPayload

func (c *PayloadConverter) FromPayload(payload *commonpb.Payload, valuePtr interface{}) error

func (*PayloadConverter) ToPayload

func (c *PayloadConverter) ToPayload(value interface{}) (*commonpb.Payload, error)

func (*PayloadConverter) ToString

func (c *PayloadConverter) ToString(payload *commonpb.Payload) string

type SignalData

type SignalData struct {
	Signal signal.Signal
}

func (SignalData) GormDataType

func (SignalData) GormDataType() string

func (SignalData) MarshalJSON added in v0.19.850

func (s SignalData) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that standard JSON serialization (used by temporaljson and Temporal data converters) includes the type discriminator.

func (*SignalData) Scan

func (s *SignalData) Scan(value interface{}) error

func (*SignalData) UnmarshalJSON added in v0.19.850

func (s *SignalData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler so that standard JSON deserialization (used by temporaljson and Temporal data converters) can reconstruct the typed signal from the {type, data} wire format using the catalog.

func (SignalData) Value

func (s SignalData) Value() (driver.Value, error)

type WorkflowRef

type WorkflowRef struct {
	IDTemplate string `json:"-"`

	Namespace string `json:"namespace"`
	ID        string `json:"id"`
	RunID     string `json:"run_id,omitempty"`

	// empty means workflows.APITaskQueue (back-compat for pre-isolation rows)
	TaskQueue string `json:"task_queue,omitempty"`
}

func (WorkflowRef) GormDataType

func (WorkflowRef) GormDataType() string

func (*WorkflowRef) Scan

func (s *WorkflowRef) Scan(value interface{}) error

func (WorkflowRef) Value

func (s WorkflowRef) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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