fosshostorg / aarch64

Dashboard and API for https://console.aarch64.com
https://console.aarch64.com
GNU Affero General Public License v3.0
12 stars 7 forks source link

API rewrite in golang. #95

Closed Shinyzenith closed 2 years ago

Shinyzenith commented 2 years ago

TODO:

Signed-off-by: Shinyzenith aakashsensharma@gmail.com

Shinyzenith commented 2 years ago

I went with logrus as the logger, please do let me know if you guys would like some other package to handle logging.

haylinmoore commented 2 years ago

I believe the daemons use zap, might be best to use the same logger between go services?

Shinyzenith commented 2 years ago

Alright, I'll use zap.

Shinyzenith commented 2 years ago

Currently the database connection is stored as a singleton global in memory. Should we do the same for collections too? currently we only have two db.Colection calls but I can totally see it scaling up in the future.

The above ^ also goes for the connection context...should we use singleton pattern for it too?

Shinyzenith commented 2 years ago

The above ^ also goes for the connection context...should we use singleton pattern for it too?

Some interaction from anyone at team would help me to get along with the patch, making all the decisions alone might lead to unwanted design patterns which will lead to unnecessary refactors later.

Shinyzenith commented 2 years ago

@angelofallars feel free to join in since you're interested in working with me on the patch.

angelofallars commented 2 years ago

Yeah, I'll join in too!

Shinyzenith commented 2 years ago

Closing due to lack of interaction.

mplscorwin commented 2 years ago

You should consider forking the project. Sorry that you didn't have more feedback from the devs on this.