Giter VIP home page Giter VIP logo

Comments (7)

ray1888 avatar ray1888 commented on September 15, 2024

i use like this , and it doesn't work well

./ghz -proto ./call.proto -call protobuf.RemoteCall.get_result -d '{"method_name":"GET", "arg":"(lp0\nS'GET'\np1\naS'1'\np2\naS'cp431'\np3\na(dp4\nS'group_name'\np5\ng3\nsa."}' -n 2000 -c 50 172.17.82.212:8902

from ghz.

bojand avatar bojand commented on September 15, 2024

I am not sure how to accomplish this practically, I'll have to think about it look into it further.

from ghz.

ray1888 avatar ray1888 commented on September 15, 2024

so mark it as a feature request?@bojand

from ghz.

bojand avatar bojand commented on September 15, 2024

One option would be to provide support for reading binary serialized data. So for example you would provide a file (or via stdin) with the full message that's been serialized using protobuf. We could read it unmarshal it and use it as payload.

from ghz.

tweej avatar tweej commented on September 15, 2024

Protobuf's encoding of strings is described here, which should be similar to how bytes are handled: https://developers.google.com/protocol-buffers/docs/encoding#types

I like the idea of pre-serializing the binary data and feeding that as an input file/stdin. (Or having ghz use protobuf to serialize a binary file provided as input.)

+1 for this feature request. I don't have a use for this tool without this feature.

from ghz.

bojand avatar bojand commented on September 15, 2024

Hello, I agree this would be useful. The issue got a bit forgotten. I'll try and implement something soon-ish as I find the time. Thanks.

from ghz.

bojand avatar bojand commented on September 15, 2024

Hello, can you try the 0.14.0 release and check if it works for your use cases. I am closing this issue. If there are problems please feel free to open a new issue with all the details.

from ghz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.