betwixt-labs / bebop

🎷No ceremony, just code. Blazing fast, typesafe binary serialization.
https://bebop.sh/
Apache License 2.0
1.93k stars 40 forks source link

[Question] #319

Closed lucashan13 closed 7 months ago

lucashan13 commented 7 months ago

Hello!

I wish use bebop to real world service.

When defining a method for a service, how do I define a method that can be called without parameters?

andrewmd5 commented 7 months ago

Currently, the workaround is to just define an empty structure, but I will update IDL and generation to support empty parameters

lucashan13 commented 7 months ago

Currently, the workaround is to just define an empty structure, but I will update IDL and generation to support empty parameters

Thank you your answer! I'll use like below:

struct Empty {}