-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General observations about POC version #2
Comments
cc @ar2rworld |
It appears that |
after #5 merge: main.go
|
package recorder:
I also don't get how the main-level ticker is supposed to work with the recorder. To me, it looks like it will create a new |
server:
|
First of all, thank you for taking care of this project; I appreciate it.
After a quick review, I have prepared a list of potential improvements:
df -h
+ h.dir +| awk 'NR==2 {gsub("%","",$5); print $5}'
inside the app is not a good idea. I'm not sure if Go has a proper way to get disk utilization, but if not, we can just drop it.By and large, I'd like to see the project resembling other parts, e.g., super-bot, tg-spam, publisher, rss_generator. The reason for this is that a similar structure will make long-term maintenance easier for someone familiar with other parts of this infrastructure. For the same reason, I would like to simplify the structure and keep only what we really need without adding unnecessary abstractions and specialized tooling. I think the structure can be as simple as main.go and main_test.go (maybe with test data too) at the app level and a server package for everything else. Well, we can also have a recorder package if we really need it. Probably all we should have in the server package is a server.go handling all the routes and a recorder doing the recording, plus test files and mock files.
A couple of functional requirements I have not mentioned before:
The text was updated successfully, but these errors were encountered: