Stephen Shelton
9e7254f6fa
Rip out pass-through-to-curl functionality
2020-04-07 14:17:52 -06:00
Stephen Shelton
923e73f693
Plumb isRelay CLI arg through to config
2020-04-07 14:17:13 -06:00
Stephen Shelton
028e55e997
Remove pre-refactor config test
2020-04-07 14:14:33 -06:00
Stephen Shelton
2e75e03434
Remove incomplete impl of config hot-reloading
2020-04-07 14:14:33 -06:00
Stephen Shelton
6301fefd43
Add router-specific config comments
2020-04-07 14:14:01 -06:00
Stephen Shelton
5b520a4dff
Simplify connection limit constants
2020-04-07 14:13:27 -06:00
Stephen Shelton
14e7789847
Add padding to config file generated output
2020-04-07 14:12:31 -06:00
Stephen Shelton
1273f11ce8
First pass at updating comments to lokinet config
2020-04-07 14:12:31 -06:00
Stephen Shelton
18ee23c2a3
Support for comments in config definition
2020-04-07 14:11:58 -06:00
Stephen Shelton
1653b73ee5
Clean up the logic around generating default confs
2020-04-07 14:11:57 -06:00
Stephen Shelton
c5ff672c79
Use 'undeclared handler' for multi-valued 'add-node' config option
2020-04-07 14:10:11 -06:00
Stephen Shelton
feacde7864
Hook up 'undeclared handlers' to mop up loosely-structured INI values
2020-04-07 14:10:11 -06:00
Stephen Shelton
9a1b7b20de
Add "undeclared value" handler to Configuration
2020-04-07 14:09:14 -06:00
Stephen Shelton
e9708a5d1c
Add split(string_view, char) util function
2020-04-07 14:09:14 -06:00
Stephen Shelton
ffc58fcedb
Remove dead code (serverOptions)
2020-04-07 14:09:13 -06:00
Stephen Shelton
2e47262350
Demystify LinksConfig
2020-04-07 14:08:45 -06:00
Stephen Shelton
cd1e7713de
Clean up / consolidate config logging logic
2020-04-07 14:07:40 -06:00
Stephen Shelton
4c00c6238e
Join config definition and config parser
2020-04-07 14:06:10 -06:00
Stephen Shelton
653a650cf9
Fix typo
2020-04-07 14:05:11 -06:00
Stephen Shelton
9f0ae43149
Remove dead code
2020-04-07 14:05:11 -06:00
Stephen Shelton
d82f5e6b93
First pass at replacing config value logic
2020-04-07 14:04:36 -06:00
Stephen Shelton
a44eb73baa
Add config INI output unit tests
2020-04-07 14:01:46 -06:00
Stephen Shelton
69331f1571
Remove multiValued as an argument to ConfigDefinition
2020-04-07 14:01:45 -06:00
Stephen Shelton
f6d000838f
Clarity and convenience for defining config options
2020-04-07 14:01:45 -06:00
Stephen Shelton
02e31f3867
Introduce acceptor function in ConfigDefinition
2020-04-07 14:01:44 -06:00
Stephen Shelton
60d0bf2a9b
Rename function for clarity
2020-04-07 14:01:44 -06:00
Stephen Shelton
8160c13458
More documentation around Configuration/ConfigDefinition
2020-04-07 14:01:44 -06:00
Stephen Shelton
8352de7bd4
Config documentation, clarity
2020-04-07 14:01:43 -06:00
Stephen Shelton
d9340a873e
Consolidate Configuration generate INI functions
2020-04-07 14:01:43 -06:00
Stephen Shelton
1b19314278
Implement Configuration::generateDefaultConfig(), maintain insertion order
2020-04-07 14:01:43 -06:00
Stephen Shelton
7dacc30862
Conveience and clarity around config definiton maps
2020-04-07 14:01:42 -06:00
Stephen Shelton
105dd30fd9
More ConfigDefinition unit tests, fixes, support std::string as type
2020-04-07 14:01:42 -06:00
Stephen Shelton
25212b929c
Add ConfigDefinition unit tests, fixes
2020-04-07 14:01:41 -06:00
Stephen Shelton
a856e772c8
Stylistic clean up
2020-04-07 14:01:41 -06:00
Stephen Shelton
0fb888890f
First pass at Configuration definition classes
2020-04-07 14:01:41 -06:00
Stephen Shelton
9d71228e74
Replace config visit pattern with explicit lookups
...
This is an initial pass at doing explicit value checks when handling
config parsing, as opposed to using a visiting pattern. The latter
made it difficult to check for conditions such as missing required
values, multiple values, etc.
It was also generally less readable (think declarative) which further
made it difficult to get a grasp for what our actual configuration file
requirements were.
2020-04-07 14:01:40 -06:00
Stephen Shelton
858e252820
Add stringify() to util/str
2020-04-07 13:56:04 -06:00
Stephen Shelton
ca67c12928
Why template when we only use one type??
2020-04-07 13:56:01 -06:00
Jeff
30d0eb5bab
Merge pull request #1215 from notlesh/update-clang-format-rules-2020-04-02
...
Update clang format rules
2020-04-07 14:43:55 -04:00
Stephen Shelton
273270916e
The Great Wall of Blame
...
This commit reflects changes to clang-format rules. Unfortunately,
these rule changes create a massive change to the codebase, which
causes an apparent rewrite of git history.
Git blame's --ignore-rev flag can be used to ignore this commit when
attempting to `git blame` some code.
2020-04-07 12:38:56 -06:00
Stephen Shelton
30e7c7f828
Bump clang-format version 8 -> 9
2020-04-07 12:36:43 -06:00
Stephen Shelton
9c68fa7316
Clang-format changes to pointer/reference positioning
2020-04-07 12:36:43 -06:00
Stephen Shelton
95ec728079
More clang-format updates to parameter/argument lists
2020-04-07 12:36:42 -06:00
Stephen Shelton
205549a1c3
Update (mostly loosen) clang-format rules
2020-04-07 12:36:42 -06:00
Stephen Shelton
dba9ffe061
Add 'clang-format-hooks' submodule
...
This submodule provides git hooks which invoke clang-format
in intelligent ways.
2020-04-07 12:36:40 -06:00
Jeff
d9160cc0df
Merge pull request #1197 from majestrate/code-docs-2020-03-26
...
infrastructure for generating docs
2020-04-07 13:35:14 -04:00
Jeff Becker
4375df2f7d
add forgotten files for generating docs
2020-04-07 13:16:22 -04:00
Jeff Becker
83b418b636
make fresh docs every time
2020-04-07 13:16:22 -04:00
Jeff Becker
08613cca0b
speed up doc generation
2020-04-07 13:16:22 -04:00
Jeff Becker
c36b6a409c
move version to cmake so docs can access it
2020-04-07 13:16:22 -04:00