Commit Graph

48 Commits

Author SHA1 Message Date
Derrick Hammer dd296bd78a
feat: add initial price tracker 2024-03-10 12:43:18 -04:00
Derrick Hammer b756ad73e9
fix: skip unexported fields 2024-02-28 09:50:42 -05:00
Derrick Hammer 6b7724eb51
fix: skip unexported fields 2024-02-28 09:48:20 -05:00
Derrick Hammer 0ae69e5ba1
fix: ensure m.root.Core.Clustered is not nil 2024-02-28 09:45:34 -05:00
Derrick Hammer 80d34000a0
refactor: store protocol config in root 2024-02-28 09:43:06 -05:00
Derrick Hammer bfb8559e32
fix: hack: make Protocol an interface map 2024-02-28 09:42:06 -05:00
Derrick Hammer 586a6dc205
fix: maybeConfigureCluster called in the wrong place 2024-02-28 09:36:01 -05:00
Derrick Hammer fcf43e1f79
refactor: add cluster configuration support to set db cache based on the cluster settings 2024-02-28 09:21:20 -05:00
Derrick Hammer d71849493b
chore: unneeded method 2024-02-28 09:16:35 -05:00
Derrick Hammer 9b82da72ca
refactor: move redis to its own file and add in defaults 2024-02-28 09:14:11 -05:00
Derrick Hammer 960c2b01d9
refactor: move all config defaults and add some validations. remove initCheckRequiredConfig. 2024-02-28 09:04:47 -05:00
Derrick Hammer cb558cdfc3
feat: add reflection-based system to manage defaults and validations per struct 2024-02-28 08:47:33 -05:00
Derrick Hammer 1a20a7d35f
refactor: define a cluster config with redis and etcd support 2024-02-28 08:03:36 -05:00
Derrick Hammer 7edab13afe
refactor: define Protocol under Config for completeness 2024-02-28 06:11:04 -05:00
Derrick Hammer b51f28ea64
fix: remove import cycle 2024-02-27 03:57:17 -05:00
Derrick Hammer 6e3e096be9
refactor: change NewLogger to use config manager, and have CM pass nil to newConfig 2024-02-27 03:54:00 -05:00
Derrick Hammer 3da1ae3e5f
feat: add core.portal_name required config to be used for communication 2024-02-26 07:32:46 -05:00
Derrick Hammer 81e540c2ce
feat: initial mailer module with password reset and email verification templates 2024-02-26 07:30:53 -05:00
Derrick Hammer ea8c50edc7
refactor: make PostUploadLimit uint64 2024-02-25 02:10:41 -05:00
Derrick Hammer 5a78750df1
fix: need to call the hook not pass it as a factory 2024-02-24 08:57:36 -05:00
Derrick Hammer b5b0ed64b6
feat: add database cache support with both memory and redis modes 2024-02-24 08:19:27 -05:00
Derrick Hammer 7987e597b0
fix: use snake_case 2024-02-23 08:26:27 -05:00
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