cadence: go.uber.org/cadence/internal/common/serializer Index | Files

package serializer

import "go.uber.org/cadence/internal/common/serializer"

Index

Package Files

history_serializer.go

Variables

var (
    // MissingBinaryEncodingVersion indicate that the encoding version is missing
    MissingBinaryEncodingVersion = &shared.BadRequestError{Message: "Missing binary encoding version."}
    // InvalidBinaryEncodingVersion indicate that the encoding version is incorrect
    InvalidBinaryEncodingVersion = &shared.BadRequestError{Message: "Invalid binary encoding version."}
    // MsgPayloadNotThriftEncoded indicate message is not thrift encoded
    MsgPayloadNotThriftEncoded = &shared.BadRequestError{Message: "Message payload is not thrift encoded."}
)

func Decode Uses

func Decode(binary []byte, val ThriftObject) error

Decode decode the object

func DeserializeBatchEvents Uses

func DeserializeBatchEvents(data *shared.DataBlob) ([]*shared.HistoryEvent, error)

DeserializeBatchEvents will deserialize blob data to history event data

func DeserializeBlobDataToHistoryEvents Uses

func DeserializeBlobDataToHistoryEvents(
    dataBlobs []*shared.DataBlob, filterType shared.HistoryEventFilterType,
) (*shared.History, error)

DeserializeBlobDataToHistoryEvents deserialize the blob data to history event data

func Encode Uses

func Encode(obj ThriftObject) ([]byte, error)

Encode encode the object

func NewDataBlob Uses

func NewDataBlob(data []byte, encodingType shared.EncodingType) *shared.DataBlob

NewDataBlob creates new blob data

func SerializeBatchEvents Uses

func SerializeBatchEvents(events []*shared.HistoryEvent, encodingType shared.EncodingType) (*shared.DataBlob, error)

SerializeBatchEvents will serialize history event data to blob data

type ThriftObject Uses

type ThriftObject interface {
    FromWire(w wire.Value) error
    ToWire() (wire.Value, error)
}

ThriftObject represents a thrift object

Package serializer imports 7 packages (graph) and is imported by 2 packages. Updated 2020-04-08. Refresh now. Tools for package owners.

The go get command cannot install this package because of the following issues: