Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Gardham-Pallister committed May 3, 2018
1 parent fc66e5a commit 06148c6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ So in order to get Rafty really running the IPeerProvider needs to return peers.
Finally you need to expose the INode interface to some kind of HTTP. I would advise just a plain old .net core web api type thing. These are the methods you need to expose and the transport in your IPeer should hit these URLS (hope that makes some sense). You can look at NodePeer to see how I do this in memory.

```csharp
AppendEntriesResponse Request(AppendEntries appendEntries);
RequestVoteResponse Request(RequestVote requestVote);
Response<T> Request<T>(T command);

Task<AppendEntriesResponse> Request(AppendEntries appendEntries);
Task<RequestVoteResponse> Request(RequestVote requestVote);
Task<Response<T>> Request<T>(T command);

```

## Further help..
## Further help

The Acceptance and Integration tests will be helpful for anyone who wants to use Rafty.

Expand Down

0 comments on commit 06148c6

Please sign in to comment.