Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider implementing the Delimited interface in protoutil.JSONPb and ProtoPb #20925

Closed
johanbrandhorst opened this issue Dec 20, 2017 · 0 comments

Comments

@johanbrandhorst
Copy link
Contributor

The grpc-gateway introduced a new interface that marshallers probably want to implement: Delimited. It is used to determine what delimiter to use when sending a stream of messages. I imagine for the JSON marshaller we'll want to use \n like the default grpc-gateway one does, not sure about the proto marshaller though, maybe \n there as well.

This is in https://github.com/cockroachdb/cockroach/blob/faf9cbd87c60fce3466a109c621c18762b88f450/pkg/util/protoutil/jsonpb_marshal.go for reference.

johanbrandhorst added a commit to johanbrandhorst/cockroach that referenced this issue Dec 21, 2017
Implement the Delimited interface for the gogo/protobuf JSONPb and ProtoPb marshallers.

Fixes cockroachdb#20925
johanbrandhorst added a commit to johanbrandhorst/cockroach that referenced this issue Dec 21, 2017
Implement the Delimited interface for the gogo/protobuf JSONPb and ProtoPb marshallers.

Fixes cockroachdb#20925
johanbrandhorst added a commit to johanbrandhorst/cockroach that referenced this issue Dec 22, 2017
Implement the Delimited interface for the gogo/protobuf JSONPb marshaller.

Fixes cockroachdb#20925
johanbrandhorst added a commit to johanbrandhorst/cockroach that referenced this issue Dec 22, 2017
Implement the Delimited interface for the gogo/protobuf JSONPb marshaller.

Fixes cockroachdb#20925
johanbrandhorst added a commit to johanbrandhorst/cockroach that referenced this issue Dec 22, 2017
Implement the Delimited interface for the gogo/protobuf JSONPb marshaller.

Fixes cockroachdb#20925
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant