Documentation ¶
Overview ¶
Package encoded contains wrappers that are used for binary payloads deserialization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataConverter ¶ added in v0.7.1
type DataConverter = internal.DataConverter
DataConverter is used by the framework to serialize/deserialize input and output of activity/workflow that need to be sent over the wire. To encode/decode workflow arguments, one should set DataConverter in two places:
- Workflow worker, through worker.Options
- Client, through client.Options
To encode/decode Activity/ChildWorkflow arguments, one should set DataConverter in two places:
- Inside workflow code, use workflow.WithDataConverter to create new Context,
and pass that context to ExecuteActivity/ExecuteChildWorkflow calls. Temporal support using different DataConverters for different activity/childWorkflow in same workflow.
- Activity/Workflow worker that run these activity/childWorkflow, through worker.Options.
func GetDefaultDataConverter ¶ added in v0.9.1
func GetDefaultDataConverter() DataConverter
GetDefaultDataConverter return default data converter used by Temporal worker
type PayloadConverter ¶ added in v0.22.7
type PayloadConverter = internal.PayloadConverter
PayloadConverter converts single value to/from payload.
func GetDefaultPayloadConverter ¶ added in v0.22.7
func GetDefaultPayloadConverter() PayloadConverter
GetDefaultPayloadConverter return default data converter used by Temporal worker
type Value ¶
Value is used to encapsulate/extract encoded value from workflow/activity.