|
6 | 6 | */ |
7 | 7 |
|
8 | 8 | #include "fbpcs/emp_games/lift/metadata_compaction/MetadataCompactionOptions.h" |
| 9 | +#include <gflags/gflags.h> |
9 | 10 |
|
10 | | -DEFINE_int32(party, 1, "1 = publisher, 2 = partner"); |
11 | | -DEFINE_bool( |
12 | | - use_xor_encryption, |
13 | | - true, |
14 | | - "Reveal output with XOR secret shares instead of in the clear to both parties"); |
15 | | -DEFINE_string(server_ip, "127.0.0.1", "Server's IP Address"); |
16 | | -DEFINE_int32( |
17 | | - port, |
18 | | - 10000, |
19 | | - "Network port for establishing connection to other player"); |
20 | | - |
21 | | -// Lift settings |
22 | 11 | DEFINE_string(input_path, "", "Input file to run lift metadata compaction"); |
23 | | -DEFINE_string( |
24 | | - output_global_params_path, |
25 | | - "", |
26 | | - "Output file to write global params from input data."); |
27 | | -DEFINE_string( |
28 | | - output_secret_shares_path, |
29 | | - "", |
30 | | - "Output file to write compacted metadata secret share results."); |
31 | | -DEFINE_int32( |
32 | | - file_start_index, |
33 | | - 0, |
34 | | - "First file that will be read with base path"); |
35 | | -DEFINE_int32(num_files, 0, "Number of files that should be read"); |
36 | | -DEFINE_string( |
37 | | - input_base_path, |
38 | | - "", |
39 | | - "Local or s3 base path for the sharded input files"); |
40 | 12 | DEFINE_string( |
41 | 13 | output_global_params_base_path, |
42 | 14 | "", |
43 | 15 | "Local or s3 base path where output global param files are written to"); |
44 | 16 | DEFINE_string( |
45 | | - output_secret_shares_base_path, |
46 | | - "", |
47 | | - "Local or s3 base path where output secret share files are written to"); |
48 | | -DEFINE_int32(concurrency, 1, "max number of games that will run concurrently"); |
49 | | -DEFINE_int32( |
50 | | - epoch, |
51 | | - 1546300800, |
52 | | - "Unixtime of 2019-01-01. Used as our 'new epoch' for timestamps"); |
53 | | -DEFINE_int32( |
54 | | - num_conversions_per_user, |
55 | | - 4, |
56 | | - "Cap and pad to this many conversions per user"); |
57 | | -DEFINE_bool( |
58 | | - compute_publisher_breakdowns, |
59 | | - true, |
60 | | - "To enable or disable computing publisher breakdown for result validation"); |
61 | | - |
62 | | -// TLS Settings |
63 | | -DEFINE_bool( |
64 | | - use_tls, |
65 | | - false, |
66 | | - "Whether to use TLS when communicating with other parties."); |
67 | | -DEFINE_string( |
68 | | - ca_cert_path, |
69 | | - "", |
70 | | - "Relative file path where root CA cert is stored. It will be prefixed with $HOME."); |
71 | | -DEFINE_string( |
72 | | - server_cert_path, |
73 | | - "", |
74 | | - "Relative file path where server cert is stored. It will be prefixed with $HOME."); |
75 | | -DEFINE_string( |
76 | | - private_key_path, |
| 17 | + output_global_params_path, |
77 | 18 | "", |
78 | | - "Relative file path where private key is stored. It will be prefixed with $HOME."); |
79 | | - |
80 | | -// Logging flags |
| 19 | + "Output file to write global params from input data."); |
81 | 20 | DEFINE_string( |
82 | | - run_name, |
| 21 | + output_secret_shares_base_path, |
83 | 22 | "", |
84 | | - "A user given run name that will be used in s3 filename"); |
85 | | -DEFINE_bool( |
86 | | - log_cost, |
87 | | - false, |
88 | | - "Log cost info into cloud which will be used for dashboard"); |
89 | | -DEFINE_string(log_cost_s3_bucket, "", "s3 bucket name"); |
90 | | -DEFINE_string( |
91 | | - log_cost_s3_region, |
92 | | - ".s3.us-west-2.amazonaws.com/", |
93 | | - "s3 region name"); |
94 | | - |
| 23 | + "Local or s3 base path where output secret share files are written to"); |
95 | 24 | DEFINE_string( |
96 | | - pc_feature_flags, |
| 25 | + output_secret_shares_path, |
97 | 26 | "", |
98 | | - "A String of PC Feature Flags passing from PCS, separated by comma"); |
| 27 | + "Output file to write compacted metadata secret share results."); |
0 commit comments