MCPcopy Create free account
hub / github.com/temporalio/temporal / EncodeHistoryEvents

Method EncodeHistoryEvents

common/codec/jsonpb.go:49–53  ·  view source on GitHub ↗

Encode HistoryEvent slice to bytes.

(historyEvents []*historypb.HistoryEvent)

Source from the content-addressed store, hash-verified

47
48// Encode HistoryEvent slice to bytes.
49func (e *JSONPBEncoder) EncodeHistoryEvents(historyEvents []*historypb.HistoryEvent) ([]byte, error) {
50 return e.encodeSlice(
51 len(historyEvents),
52 func(i int) proto.Message { return historyEvents[i] })
53}
54
55// Encode History slice to bytes.
56func (e *JSONPBEncoder) EncodeHistories(histories []*historypb.History) ([]byte, error) {

Callers 2

AdminShowWorkflowFunction · 0.95
TestDecodePayloadsInJSONFunction · 0.95

Calls 1

encodeSliceMethod · 0.95

Tested by 1

TestDecodePayloadsInJSONFunction · 0.76