package rpc_parallel

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file start_app.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
open! Core
open! Async

let backend = (module Backend : Rpc_parallel.Backend)
let backend_and_settings = Rpc_parallel.Backend_and_settings.T ((module Backend), ())

let start_app
      ?rpc_max_message_size
      ?rpc_handshake_timeout
      ?rpc_heartbeat_config
      ?when_parsing_succeeds
      ?complete_subcommands
      command
  =
  Rpc_parallel.start_app
    ?rpc_max_message_size
    ?rpc_handshake_timeout
    ?rpc_heartbeat_config
    ?when_parsing_succeeds
    ?complete_subcommands
    backend_and_settings
    command
;;

module For_testing = struct
  let initialize = Rpc_parallel.For_testing.initialize backend_and_settings
end

module Expert = struct
  let start_master_server_exn
        ?rpc_max_message_size
        ?rpc_handshake_timeout
        ?rpc_heartbeat_config
        ?pass_name
    =
    Rpc_parallel.Expert.start_master_server_exn
      ?rpc_max_message_size
      ?rpc_handshake_timeout
      ?rpc_heartbeat_config
      ?pass_name
      backend_and_settings
  ;;

  let worker_command = Rpc_parallel.Expert.worker_command backend
  let start_worker_server_exn = Rpc_parallel.Expert.start_worker_server_exn backend
end
OCaml

Innovation. Community. Security.