LogCabin
Namespaces | Defines
Server/RaftService.cc File Reference
#include "build/Protocol/Raft.pb.h"
#include "Core/Debug.h"
#include "Core/ProtoBuf.h"
#include "RPC/ServerRPC.h"
#include "Server/RaftConsensus.h"
#include "Server/RaftService.h"
#include "Server/Globals.h"

Go to the source code of this file.

Namespaces

namespace  LogCabin
namespace  LogCabin::Server

Defines

#define PRELUDE(rpcClass)
 Place this at the top of each RPC handler.

Define Documentation

#define PRELUDE (   rpcClass)

Place this at the top of each RPC handler.

Afterwards, 'request' will refer to the protocol buffer for the request with all required fields set. 'response' will be an empty protocol buffer for you to fill in the response.

Definition at line 70 of file RaftService.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines