MCPcopy
hub / github.com/dgraph-io/dgraph / NewRaftServer

Function NewRaftServer

conn/raft_server.go:140–142  ·  view source on GitHub ↗

NewRaftServer returns a pointer to a new RaftServer instance.

(n *Node)

Source from the content-addressed store, hash-verified

138
139// NewRaftServer returns a pointer to a new RaftServer instance.
140func 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.
145func (w *RaftServer) IsPeer(ctx context.Context, rc *pb.RaftContext) (

Callers 1

serveGRPCMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected