Comments (1)
It returns a sm.Result so the client that made the proposal can know what is the execution outcome of its proposal.
Your program is free to return whatever result necessary. The above example returns uint64(len(data)) just as an example.
Result.Value is just a value, it provides an easy way to return a single value without any allocation. If such a single value is not enough, you can then use the Result.Data field to return a []byte, by doing that your program is in charge of the allocation.
from dragonboat-example.
Related Issues (20)
- 缺少一个编译选项 HOT 1
- how to use tcp or etcd svr to read ,to replace "reader := bufio.NewReader(os.Stdin)" in example HOT 1
- ondisk restore from snapshort panic HOT 1
- ondisk example is unable to recover from crash HOT 1
- Cannot resolve reference to regular client session example HOT 1
- Is the distribution of multi groups leaders balanced? HOT 2
- Use multi group Raft with OnDisk HOT 2
- leader election HOT 1
- regarding multiple raft group HOT 1
- regarding shardid = 128 and ondisk example
- go mod vendor and go build error for ondisk
- trying to read godoc for diskkv.go but not available. possible to pls update? HOT 1
- run example-ondisk fail HOT 1
- possible to do a pub/sub example?
- Can replicas run on different hosts to form a cluster? When I tried to do this, configuring the node address, I used the public ip of the host, and the ip was not recognized at startup.
- it doesnt seem possible to simulate a failed node with the ondisk example HOT 7
- RUN helloworld example error! HOT 1
- C++ examples HOT 1
- raft: write op just can on leader, or any node
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dragonboat-example.