-
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
Use go-chi for handling routes #11
Conversation
* fixed bool type declaration * updated queue store to use bool values * updated to pause, resume and delete functions * changed remove token
|
||
listenAddr := ":8080" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Moved variable down to be closer to where it's required.
This looks good. Specially later when we add authentication and ownership, we will have to use middlewares. |
True. |
I was trying out https://github.com/go-chi/chi for route management, and got impressed by it.
It has got some good middlewares built in, that handles logging and timeouts.