dataconverter

command
v1.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 12 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.

README

Custom data converter

This sample configures a small api.DataConverter on both the DTS management client and worker. The converter writes sample-dc: plus base64-encoded JSON so the custom encoding is visible in metadata and history without adding another serialization dependency.

Run

export DTS_CONNECTION_STRING='Endpoint=http://127.0.0.1:8080;TaskHub=default;Authentication=None'
go run ./samples/dataconverter

What it proves

  • Typed orchestration input/output, activity input/output, external event data, custom status, and entity state all round-trip through the configured converter.
  • A raw-input workflow intentionally bypasses converter serialization and verifies that the raw metadata is unchanged.
  • The converter can still read legacy/plain JSON payloads for compatibility.

SAMPLE_OK dataconverter is printed only after decoded values, raw encodings, and entity cleanup are verified. The sample deletes only its exact entity key and purges only its declared orchestration IDs.

Documentation

Overview

Command dataconverter demonstrates a visible custom api.DataConverter on DTS.

Jump to

Keyboard shortcuts

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