JSONPBEncoder is JSON encoder/decoder for protobuf structs and slices of protobuf structs. This is an wrapper on top of jsonpb.Marshaler which supports not only single object serialization but also slices of concrete objects.
| 16 | // This is an wrapper on top of jsonpb.Marshaler which supports not only single object serialization |
| 17 | // but also slices of concrete objects. |
| 18 | JSONPBEncoder struct { |
| 19 | marshaler protojson.MarshalOptions |
| 20 | unmarshaler temporalproto.CustomJSONUnmarshalOptions |
| 21 | } |
| 22 | ) |
| 23 | |
| 24 | // NewJSONPBEncoder creates a new JSONPBEncoder. |
nothing calls this directly
no outgoing calls
no test coverage detected