MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / _Raft_JoinCluster_Handler

Function _Raft_JoinCluster_Handler

bitmap/pb.pb.go:5640–5656  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

5638}
5639
5640func _Raft_JoinCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
5641 in := new(RaftContext)
5642 if err := dec(in); err != nil {
5643 return nil, err
5644 }
5645 if interceptor == nil {
5646 return srv.(RaftServer).JoinCluster(ctx, in)
5647 }
5648 info := &grpc.UnaryServerInfo{
5649 Server: srv,
5650 FullMethod: "/pb.Raft/JoinCluster",
5651 }
5652 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
5653 return srv.(RaftServer).JoinCluster(ctx, req.(*RaftContext))
5654 }
5655 return interceptor(ctx, in, info, handler)
5656}
5657
5658func _Raft_IsPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
5659 in := new(RaftContext)

Callers

nothing calls this directly

Calls 1

JoinClusterMethod · 0.65

Tested by

no test coverage detected