The purpose of this application is to return the online status of user(s).
- Utilizes redis database
- Utilizes chi go package
- Shows all online users
- Users can be added
- User can change their status to online
- User's status will be offline(data removed from redis) after 30sec
- Connection pooling and timeout
-
GET Request at http://localhost:8000/account/status?username={username}
- Response:
- if user is present: return their online status
- if user is not present: add user and set status to online
- Response:
-
GET Request at http://localhost:8000/account/all
- Response:
- Returns list of all users and their status
- Response:
- If the user is offline, show "was online X mins ago"
- Dashboard to show redis metrics