encoded

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 1 Imported by: 40

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.0

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:

  1. Workflow worker, through worker.Options
  2. Client, through client.Options

To encode/decode Activity/ChildWorkflow arguments, one should set DataConverter in two places:

  1. Inside workflow code, use workflow.WithDataConverter to create new Context,

and pass that context to ExecuteActivity/ExecuteChildWorkflow calls. Cadence support using different DataConverters for different activity/childWorkflow in same workflow.

  1. Activity/Workflow worker that run these activity/childWorkflow, through worker.Options.

func GetDefaultDataConverter added in v0.9.0

func GetDefaultDataConverter() DataConverter

GetDefaultDataConverter return default data converter used by Cadence worker

type Value

type Value = internal.Value

Value is used to encapsulate/extract encoded value from workflow/activity.

type Values

type Values = internal.Values

Values is used to encapsulate/extract encoded one or more values from workflow/activity.

Jump to

Keyboard shortcuts

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