serialization

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 7 Imported by: 1 module, 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser interface {
	ShardInfoToBlob(*sqlblobs.ShardInfo) (persistence.DataBlob, error)
	DomainInfoToBlob(*sqlblobs.DomainInfo) (persistence.DataBlob, error)
	HistoryTreeInfoToBlob(*sqlblobs.HistoryTreeInfo) (persistence.DataBlob, error)
	WorkflowExecutionInfoToBlob(*sqlblobs.WorkflowExecutionInfo) (persistence.DataBlob, error)
	ActivityInfoToBlob(*sqlblobs.ActivityInfo) (persistence.DataBlob, error)
	ChildExecutionInfoToBlob(*sqlblobs.ChildExecutionInfo) (persistence.DataBlob, error)
	SignalInfoToBlob(*sqlblobs.SignalInfo) (persistence.DataBlob, error)
	RequestCancelInfoToBlob(*sqlblobs.RequestCancelInfo) (persistence.DataBlob, error)
	TimerInfoToBlob(*sqlblobs.TimerInfo) (persistence.DataBlob, error)
	TaskInfoToBlob(*sqlblobs.TaskInfo) (persistence.DataBlob, error)
	TaskListInfoToBlob(*sqlblobs.TaskListInfo) (persistence.DataBlob, error)
	TransferTaskInfoToBlob(*sqlblobs.TransferTaskInfo) (persistence.DataBlob, error)
	TimerTaskInfoToBlob(*sqlblobs.TimerTaskInfo) (persistence.DataBlob, error)
	ReplicationTaskInfoToBlob(*sqlblobs.ReplicationTaskInfo) (persistence.DataBlob, error)

	ShardInfoFromBlob([]byte, string) (*sqlblobs.ShardInfo, error)
	DomainInfoFromBlob([]byte, string) (*sqlblobs.DomainInfo, error)
	HistoryTreeInfoFromBlob([]byte, string) (*sqlblobs.HistoryTreeInfo, error)
	WorkflowExecutionInfoFromBlob([]byte, string) (*sqlblobs.WorkflowExecutionInfo, error)
	ActivityInfoFromBlob([]byte, string) (*sqlblobs.ActivityInfo, error)
	ChildExecutionInfoFromBlob([]byte, string) (*sqlblobs.ChildExecutionInfo, error)
	SignalInfoFromBlob([]byte, string) (*sqlblobs.SignalInfo, error)
	RequestCancelInfoFromBlob([]byte, string) (*sqlblobs.RequestCancelInfo, error)
	TimerInfoFromBlob([]byte, string) (*sqlblobs.TimerInfo, error)
	TaskInfoFromBlob([]byte, string) (*sqlblobs.TaskInfo, error)
	TaskListInfoFromBlob([]byte, string) (*sqlblobs.TaskListInfo, error)
	TransferTaskInfoFromBlob([]byte, string) (*sqlblobs.TransferTaskInfo, error)
	TimerTaskInfoFromBlob([]byte, string) (*sqlblobs.TimerTaskInfo, error)
	ReplicationTaskInfoFromBlob([]byte, string) (*sqlblobs.ReplicationTaskInfo, error)
}

Parser is used to do serialization and deserialization. A parser is backed by a a single encoder which encodes into one format and a collection of decoders. Parser selects the appropriate decoder for the provided blob.

func NewParser

func NewParser(encodingType common.EncodingType, decodingTypes ...common.EncodingType) (Parser, error)

NewParser constructs a new parser using encoder as specified by encodingType and using decoders specified by decodingTypes

Jump to

Keyboard shortcuts

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