in api/proto/ratis/ratis-grpc.pb.go [527:543]
func _RaftServerProtocolService_RequestVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RequestVoteRequestProto)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RaftServerProtocolServiceServer).RequestVote(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ratis.grpc.RaftServerProtocolService/RequestVote",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RaftServerProtocolServiceServer).RequestVote(ctx, req.(*RequestVoteRequestProto))
}
return interceptor(ctx, in, info, handler)
}