We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This RFC aims to discuss how we support the very easy to use RAFT service.
I propose this simple usage:
// my_counter_service.h class MyCounterService { public: virtual int get() const = 0; virtual void incr(int delta) = 0; };
// my_counter_service_impl.h class MyCounterServiceImpl : public MyCounterService { public: int get() const { return val_; } void incr(int delta) { val_ += delta; } private: int val_ = 0; }; INIT_RAFT_SERVICE(MyCounterService, MyCounterService::incr, MyCounterService::get);
/// server.h #include "my_counter_service_impl.h" int main() { raftcpp::Loop(); }
/// client.h #include "my_counter_service.h" int main() { }
The text was updated successfully, but these errors were encountered:
@xzhangxian1008 @zhangdexin @qicosmos @BryainZhang
Sorry, something went wrong.
Note that this is very important to support our slogan: A Raft implementation to help build your Raft service in 1 minute.
A Raft implementation to help build your Raft service in 1 minute.
qicosmos
No branches or pull requests
This RFC aims to discuss how we support the very easy to use RAFT service.
I propose this simple usage:
The text was updated successfully, but these errors were encountered: