Commit Graph

26 Commits

Author SHA1 Message Date
Derrick Hammer daf63268eb
fix: need to use viper.Sub to scope on the protocol namespace and unmarshal 2024-02-23 07:54:45 -05:00
Derrick Hammer ef25887a87
feat: add save method that will re-unmarshal into the config struct 2024-02-22 03:38:05 -05:00
Derrick Hammer 41a3b1faa6
fix: missing return in constructor 2024-02-22 03:19:46 -05:00
Derrick Hammer 4f094eab2c
fix: Unmarshal needs a pointer to config 2024-02-22 03:17:27 -05:00
Derrick Hammer 7f12ee5b0d
refactor: implement new configuration management system 2024-02-22 02:13:59 -05:00
Derrick Hammer 2dc8fc56f5
refactor: epic refactor to use uber fx microframework/DI framework to manage dependency graph, remove the portal object, and remove the interfaces package 2024-01-28 02:20:59 -05:00
Derrick Hammer cd7790834b
fix: provide a default database name 2024-01-15 23:59:18 -05:00
Derrick Hammer 212832eda1
refactor: since Portal.Logger can return a temporary logger, just use it 2024-01-15 22:44:28 -05:00
Derrick Hammer 27ad581026
fix: port default needs to be a number 2024-01-15 22:36:17 -05:00
Derrick Hammer 82fe380b02
feat: initial database support and models 2024-01-15 20:58:20 -05:00
Derrick Hammer 73ab5b8214
refactor: add a means of saving the config if any default value is not set 2024-01-15 12:02:15 -05:00
Derrick Hammer 8ab200541e
fix: add default for protocol.s5.p2p.maxOutgoingPeerFailures 2024-01-15 11:50:31 -05:00
Derrick Hammer 0281936511
refactor: put logger as its own package with a custom config for the log level, allow it to be configurable with a default, add an init func for it, and have the config init use a temp logger 2024-01-15 10:02:58 -05:00
Derrick Hammer 9ebdeb74c6
refactor: set default options starting with core.post-upload-limi, and save the config when none exists 2024-01-14 23:54:01 -05:00
Derrick Hammer b8572ea712
fix: use logger and return errors 2024-01-11 23:23:22 -05:00
Derrick Hammer 519426ba7d
feat: bare bones s5 support, and more dynamic loading of subsystems 2024-01-11 23:13:10 -05:00
Derrick Hammer c7bce2ff23
refactor: Prune old code base to prepare for rewrite 2024-01-11 14:49:50 -05:00
Derrick Hammer 18529f2cd1
refactor: Revert "feat: add newrelic support"
This reverts commit 06b3ab87f7.
2023-08-09 02:36:24 -04:00
Derrick Hammer 06b3ab87f7
feat: add newrelic support 2023-08-05 17:19:03 -04:00
Derrick Hammer da0efcdd0c
refactor: store config path options in ConfigFilePaths 2023-06-09 15:35:33 -04:00
Derrick Hammer 99d7b8347a
feat: add debug mode logging support 2023-06-06 16:37:22 -04:00
Derrick Hammer 670bc9d64c
refactor: enable automatic env parsing 2023-06-06 16:35:58 -04:00
Derrick Hammer 4831b8b68f
refactor: need to add renterd-api-password config arg 2023-06-06 16:35:20 -04:00
Derrick Hammer 6e0ec8aaf9
fix: only panic if the error is other than a missing config file 2023-04-30 02:14:44 -04:00
Derrick Hammer 241db4deb6
fix: update default flag values 2023-04-30 02:14:14 -04:00
Derrick Hammer 9a4c3d5d13
feat: wip version 2023-04-29 13:40:43 -04:00