NewRaftServer returns a pointer to a new RaftServer instance.
(n *Node)
| 138 | |
| 139 | // NewRaftServer returns a pointer to a new RaftServer instance. |
| 140 | func NewRaftServer(n *Node) *RaftServer { |
| 141 | return &RaftServer{node: n} |
| 142 | } |
| 143 | |
| 144 | // IsPeer checks whether this node is a peer of the node sending the request. |
| 145 | func (w *RaftServer) IsPeer(ctx context.Context, rc *pb.RaftContext) ( |