Documentation ¶
Index ¶
- func ActivityInfoFromBlob(blob []byte, encoding string) (*persistencespb.ActivityInfo, error)
- func ActivityInfoToBlob(info *persistencespb.ActivityInfo) (commonpb.DataBlob, error)
- func ChecksumFromBlob(blob []byte, encoding string) (*persistencespb.Checksum, error)
- func ChecksumToBlob(checksum *persistencespb.Checksum) (commonpb.DataBlob, error)
- func ChildExecutionInfoFromBlob(blob []byte, encoding string) (*persistencespb.ChildExecutionInfo, error)
- func ChildExecutionInfoToBlob(info *persistencespb.ChildExecutionInfo) (commonpb.DataBlob, error)
- func HistoryBranchFromBlob(blob []byte, encoding string) (*persistencespb.HistoryBranch, error)
- func HistoryBranchToBlob(info *persistencespb.HistoryBranch) (commonpb.DataBlob, error)
- func HistoryTreeInfoFromBlob(blob []byte, encoding string) (*persistencespb.HistoryTreeInfo, error)
- func HistoryTreeInfoToBlob(info *persistencespb.HistoryTreeInfo) (commonpb.DataBlob, error)
- func NamespaceDetailFromBlob(blob []byte, encoding string) (*persistencespb.NamespaceDetail, error)
- func NamespaceDetailToBlob(info *persistencespb.NamespaceDetail) (commonpb.DataBlob, error)
- func NewDeserializationError(msg string) error
- func NewSerializationError(msg string) error
- func NewUnknownEncodingTypeError(encodingType enumspb.EncodingType) error
- func QueueMetadataFromBlob(blob []byte, encoding string) (*persistencespb.QueueMetadata, error)
- func QueueMetadataToBlob(metadata *persistencespb.QueueMetadata) (commonpb.DataBlob, error)
- func ReplicationTaskFromBlob(blob []byte, encoding string) (*replicationspb.ReplicationTask, error)
- func ReplicationTaskInfoFromBlob(blob []byte, encoding string) (*persistencespb.ReplicationTaskInfo, error)
- func ReplicationTaskInfoToBlob(info *persistencespb.ReplicationTaskInfo) (commonpb.DataBlob, error)
- func ReplicationTaskToBlob(replicationTask *replicationspb.ReplicationTask) (commonpb.DataBlob, error)
- func RequestCancelInfoFromBlob(blob []byte, encoding string) (*persistencespb.RequestCancelInfo, error)
- func RequestCancelInfoToBlob(info *persistencespb.RequestCancelInfo) (commonpb.DataBlob, error)
- func ShardInfoFromBlob(blob []byte, encoding string, clusterName string) (*persistencespb.ShardInfo, error)
- func ShardInfoToBlob(info *persistencespb.ShardInfo) (commonpb.DataBlob, error)
- func SignalInfoFromBlob(blob []byte, encoding string) (*persistencespb.SignalInfo, error)
- func SignalInfoToBlob(info *persistencespb.SignalInfo) (commonpb.DataBlob, error)
- func TaskInfoFromBlob(blob []byte, encoding string) (*persistencespb.AllocatedTaskInfo, error)
- func TaskInfoToBlob(info *persistencespb.AllocatedTaskInfo) (commonpb.DataBlob, error)
- func TaskQueueInfoFromBlob(blob []byte, encoding string) (*persistencespb.TaskQueueInfo, error)
- func TaskQueueInfoToBlob(info *persistencespb.TaskQueueInfo) (commonpb.DataBlob, error)
- func TimerInfoFromBlob(blob []byte, encoding string) (*persistencespb.TimerInfo, error)
- func TimerInfoToBlob(info *persistencespb.TimerInfo) (commonpb.DataBlob, error)
- func TimerTaskInfoFromBlob(blob []byte, encoding string) (*persistencespb.TimerTaskInfo, error)
- func TimerTaskInfoToBlob(info *persistencespb.TimerTaskInfo) (commonpb.DataBlob, error)
- func TransferTaskInfoFromBlob(blob []byte, encoding string) (*persistencespb.TransferTaskInfo, error)
- func TransferTaskInfoToBlob(info *persistencespb.TransferTaskInfo) (commonpb.DataBlob, error)
- func VisibilityTaskInfoFromBlob(blob []byte, encoding string) (*persistencespb.VisibilityTaskInfo, error)
- func VisibilityTaskInfoToBlob(info *persistencespb.VisibilityTaskInfo) (commonpb.DataBlob, error)
- func WorkflowExecutionInfoFromBlob(blob []byte, encoding string) (*persistencespb.WorkflowExecutionInfo, error)
- func WorkflowExecutionInfoToBlob(info *persistencespb.WorkflowExecutionInfo) (commonpb.DataBlob, error)
- func WorkflowExecutionStateFromBlob(blob []byte, encoding string) (*persistencespb.WorkflowExecutionState, error)
- func WorkflowExecutionStateToBlob(info *persistencespb.WorkflowExecutionState) (commonpb.DataBlob, error)
- type DeserializationError
- type SerializationError
- type Serializer
- type UnknownEncodingTypeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivityInfoFromBlob ¶
func ActivityInfoFromBlob(blob []byte, encoding string) (*persistencespb.ActivityInfo, error)
func ActivityInfoToBlob ¶
func ActivityInfoToBlob(info *persistencespb.ActivityInfo) (commonpb.DataBlob, error)
func ChecksumFromBlob ¶
func ChecksumFromBlob(blob []byte, encoding string) (*persistencespb.Checksum, error)
func ChecksumToBlob ¶
func ChecksumToBlob(checksum *persistencespb.Checksum) (commonpb.DataBlob, error)
func ChildExecutionInfoFromBlob ¶
func ChildExecutionInfoFromBlob(blob []byte, encoding string) (*persistencespb.ChildExecutionInfo, error)
func ChildExecutionInfoToBlob ¶
func ChildExecutionInfoToBlob(info *persistencespb.ChildExecutionInfo) (commonpb.DataBlob, error)
func HistoryBranchFromBlob ¶
func HistoryBranchFromBlob(blob []byte, encoding string) (*persistencespb.HistoryBranch, error)
func HistoryBranchToBlob ¶
func HistoryBranchToBlob(info *persistencespb.HistoryBranch) (commonpb.DataBlob, error)
func HistoryTreeInfoFromBlob ¶
func HistoryTreeInfoFromBlob(blob []byte, encoding string) (*persistencespb.HistoryTreeInfo, error)
func HistoryTreeInfoToBlob ¶
func HistoryTreeInfoToBlob(info *persistencespb.HistoryTreeInfo) (commonpb.DataBlob, error)
func NamespaceDetailFromBlob ¶
func NamespaceDetailFromBlob(blob []byte, encoding string) (*persistencespb.NamespaceDetail, error)
func NamespaceDetailToBlob ¶
func NamespaceDetailToBlob(info *persistencespb.NamespaceDetail) (commonpb.DataBlob, error)
func NewDeserializationError ¶ added in v1.10.0
NewDeserializationError returns a DeserializationError
func NewSerializationError ¶ added in v1.10.0
NewSerializationError returns a SerializationError
func NewUnknownEncodingTypeError ¶ added in v1.10.0
func NewUnknownEncodingTypeError(encodingType enumspb.EncodingType) error
NewUnknownEncodingTypeError returns a new instance of encoding type error
func QueueMetadataFromBlob ¶ added in v1.4.0
func QueueMetadataFromBlob(blob []byte, encoding string) (*persistencespb.QueueMetadata, error)
func QueueMetadataToBlob ¶ added in v1.4.0
func QueueMetadataToBlob(metadata *persistencespb.QueueMetadata) (commonpb.DataBlob, error)
func ReplicationTaskFromBlob ¶ added in v1.4.0
func ReplicationTaskFromBlob(blob []byte, encoding string) (*replicationspb.ReplicationTask, error)
func ReplicationTaskInfoFromBlob ¶
func ReplicationTaskInfoFromBlob(blob []byte, encoding string) (*persistencespb.ReplicationTaskInfo, error)
func ReplicationTaskInfoToBlob ¶
func ReplicationTaskInfoToBlob(info *persistencespb.ReplicationTaskInfo) (commonpb.DataBlob, error)
func ReplicationTaskToBlob ¶ added in v1.4.0
func ReplicationTaskToBlob(replicationTask *replicationspb.ReplicationTask) (commonpb.DataBlob, error)
func RequestCancelInfoFromBlob ¶
func RequestCancelInfoFromBlob(blob []byte, encoding string) (*persistencespb.RequestCancelInfo, error)
func RequestCancelInfoToBlob ¶
func RequestCancelInfoToBlob(info *persistencespb.RequestCancelInfo) (commonpb.DataBlob, error)
func ShardInfoFromBlob ¶
func ShardInfoToBlob ¶
func ShardInfoToBlob(info *persistencespb.ShardInfo) (commonpb.DataBlob, error)
func SignalInfoFromBlob ¶
func SignalInfoFromBlob(blob []byte, encoding string) (*persistencespb.SignalInfo, error)
func SignalInfoToBlob ¶
func SignalInfoToBlob(info *persistencespb.SignalInfo) (commonpb.DataBlob, error)
func TaskInfoFromBlob ¶
func TaskInfoFromBlob(blob []byte, encoding string) (*persistencespb.AllocatedTaskInfo, error)
func TaskInfoToBlob ¶
func TaskInfoToBlob(info *persistencespb.AllocatedTaskInfo) (commonpb.DataBlob, error)
func TaskQueueInfoFromBlob ¶
func TaskQueueInfoFromBlob(blob []byte, encoding string) (*persistencespb.TaskQueueInfo, error)
func TaskQueueInfoToBlob ¶
func TaskQueueInfoToBlob(info *persistencespb.TaskQueueInfo) (commonpb.DataBlob, error)
func TimerInfoFromBlob ¶
func TimerInfoFromBlob(blob []byte, encoding string) (*persistencespb.TimerInfo, error)
func TimerInfoToBlob ¶
func TimerInfoToBlob(info *persistencespb.TimerInfo) (commonpb.DataBlob, error)
func TimerTaskInfoFromBlob ¶
func TimerTaskInfoFromBlob(blob []byte, encoding string) (*persistencespb.TimerTaskInfo, error)
func TimerTaskInfoToBlob ¶
func TimerTaskInfoToBlob(info *persistencespb.TimerTaskInfo) (commonpb.DataBlob, error)
func TransferTaskInfoFromBlob ¶
func TransferTaskInfoFromBlob(blob []byte, encoding string) (*persistencespb.TransferTaskInfo, error)
func TransferTaskInfoToBlob ¶
func TransferTaskInfoToBlob(info *persistencespb.TransferTaskInfo) (commonpb.DataBlob, error)
func VisibilityTaskInfoFromBlob ¶ added in v1.5.0
func VisibilityTaskInfoFromBlob(blob []byte, encoding string) (*persistencespb.VisibilityTaskInfo, error)
func VisibilityTaskInfoToBlob ¶ added in v1.5.0
func VisibilityTaskInfoToBlob(info *persistencespb.VisibilityTaskInfo) (commonpb.DataBlob, error)
func WorkflowExecutionInfoFromBlob ¶
func WorkflowExecutionInfoFromBlob(blob []byte, encoding string) (*persistencespb.WorkflowExecutionInfo, error)
func WorkflowExecutionInfoToBlob ¶
func WorkflowExecutionInfoToBlob(info *persistencespb.WorkflowExecutionInfo) (commonpb.DataBlob, error)
func WorkflowExecutionStateFromBlob ¶
func WorkflowExecutionStateFromBlob(blob []byte, encoding string) (*persistencespb.WorkflowExecutionState, error)
func WorkflowExecutionStateToBlob ¶
func WorkflowExecutionStateToBlob(info *persistencespb.WorkflowExecutionState) (commonpb.DataBlob, error)
Types ¶
type DeserializationError ¶ added in v1.10.0
type DeserializationError struct {
// contains filtered or unexported fields
}
DeserializationError is an error type for deserialization
func (*DeserializationError) Error ¶ added in v1.10.0
func (e *DeserializationError) Error() string
type SerializationError ¶ added in v1.10.0
type SerializationError struct {
// contains filtered or unexported fields
}
SerializationError is an error type for serialization
func (*SerializationError) Error ¶ added in v1.10.0
func (e *SerializationError) Error() string
type Serializer ¶ added in v1.10.0
type Serializer interface { // serialize/deserialize history events SerializeEvents(batch []*historypb.HistoryEvent, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) DeserializeEvents(data *commonpb.DataBlob) ([]*historypb.HistoryEvent, error) // serialize/deserialize a single history event SerializeEvent(event *historypb.HistoryEvent, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) DeserializeEvent(data *commonpb.DataBlob) (*historypb.HistoryEvent, error) // serialize/deserialize visibility memo fields SerializeVisibilityMemo(memo *commonpb.Memo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) DeserializeVisibilityMemo(data *commonpb.DataBlob) (*commonpb.Memo, error) // serialize/deserialize reset points SerializeResetPoints(event *workflowpb.ResetPoints, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) DeserializeResetPoints(data *commonpb.DataBlob) (*workflowpb.ResetPoints, error) // serialize/deserialize bad binaries SerializeBadBinaries(event *namespacepb.BadBinaries, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) DeserializeBadBinaries(data *commonpb.DataBlob) (*namespacepb.BadBinaries, error) // serialize/deserialize mutable cluster metadata SerializeClusterMetadata(icm *persistencespb.ClusterMetadata, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) DeserializeClusterMetadata(data *commonpb.DataBlob) (*persistencespb.ClusterMetadata, error) ShardInfoToBlob(info *persistencespb.ShardInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) ShardInfoFromBlob(data *commonpb.DataBlob, clusterName string) (*persistencespb.ShardInfo, error) NamespaceDetailToBlob(info *persistencespb.NamespaceDetail, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) NamespaceDetailFromBlob(data *commonpb.DataBlob) (*persistencespb.NamespaceDetail, error) HistoryTreeInfoToBlob(info *persistencespb.HistoryTreeInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) HistoryTreeInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.HistoryTreeInfo, error) HistoryBranchToBlob(info *persistencespb.HistoryBranch, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) HistoryBranchFromBlob(data *commonpb.DataBlob) (*persistencespb.HistoryBranch, error) WorkflowExecutionInfoToBlob(info *persistencespb.WorkflowExecutionInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) WorkflowExecutionInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.WorkflowExecutionInfo, error) WorkflowExecutionStateToBlob(info *persistencespb.WorkflowExecutionState, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) WorkflowExecutionStateFromBlob(data *commonpb.DataBlob) (*persistencespb.WorkflowExecutionState, error) ActivityInfoToBlob(info *persistencespb.ActivityInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) ActivityInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.ActivityInfo, error) ChildExecutionInfoToBlob(info *persistencespb.ChildExecutionInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) ChildExecutionInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.ChildExecutionInfo, error) SignalInfoToBlob(info *persistencespb.SignalInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) SignalInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.SignalInfo, error) RequestCancelInfoToBlob(info *persistencespb.RequestCancelInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) RequestCancelInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.RequestCancelInfo, error) TimerInfoToBlob(info *persistencespb.TimerInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) TimerInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.TimerInfo, error) TaskInfoToBlob(info *persistencespb.AllocatedTaskInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) TaskInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.AllocatedTaskInfo, error) TaskQueueInfoToBlob(info *persistencespb.TaskQueueInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) TaskQueueInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.TaskQueueInfo, error) TransferTaskInfoToBlob(info *persistencespb.TransferTaskInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) TransferTaskInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.TransferTaskInfo, error) TimerTaskInfoToBlob(info *persistencespb.TimerTaskInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) TimerTaskInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.TimerTaskInfo, error) ReplicationTaskInfoToBlob(info *persistencespb.ReplicationTaskInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) ReplicationTaskInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.ReplicationTaskInfo, error) VisibilityTaskInfoToBlob(info *persistencespb.VisibilityTaskInfo, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) VisibilityTaskInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.VisibilityTaskInfo, error) ChecksumToBlob(checksum *persistencespb.Checksum, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) ChecksumFromBlob(data *commonpb.DataBlob) (*persistencespb.Checksum, error) QueueMetadataToBlob(metadata *persistencespb.QueueMetadata, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) QueueMetadataFromBlob(data *commonpb.DataBlob) (*persistencespb.QueueMetadata, error) ReplicationTaskToBlob(replicationTask *replicationspb.ReplicationTask, encodingType enumspb.EncodingType) (*commonpb.DataBlob, error) ReplicationTaskFromBlob(data *commonpb.DataBlob) (*replicationspb.ReplicationTask, error) }
Serializer is used by persistence to serialize/deserialize objects It will only be used inside persistence, so that serialize/deserialize is transparent for application
func NewSerializer ¶ added in v1.10.0
func NewSerializer() Serializer
NewSerializer returns a PayloadSerializer
type UnknownEncodingTypeError ¶ added in v1.10.0
type UnknownEncodingTypeError struct {
// contains filtered or unexported fields
}
UnknownEncodingTypeError is an error type for unknown or unsupported encoding type
func (*UnknownEncodingTypeError) Error ¶ added in v1.10.0
func (e *UnknownEncodingTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.