command
module
Version:
v0.0.0-...-d0d622f
Opens a new window with list of versions in this module.
Published: Jul 13, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Sermo
A chat server written in Go using Pion WebRTC and JWT authentication.
Made with:
- Go 1.16
- PostgreSQL
- Mux - web framework.
- Gorilla WebSocket - WebSocket implementation in Go.
- Pion WebRTC (v3) - WebRTC implementation in Go.
- Pion RTCP - RTCP implementation in Go.
- pq - PostgreSQL driver for Go.
- JWT - used for authenticating users.
- UUID - used for parsing and storing UUID in database.
- Viper - used for configuring environment variables
- Docker
- Semaphore - CI/CD
Routes:
-
User routes:
- [POST] /user - register user with email, password
- [POST] /user/login - user login with email, password
- [GET] /user/:id - retrieves a specific user
- [GET] /users (Auth required) - retrieves list of users
- [PUT] /user/:id (Auth required) - update user details
- [DELETE] /user/:id (Auth required) - delete user by id
-
Channel routes:
- [GET] /channel/:id - retrieves a specific channel
- [POST] /channel (Auth required) - register channel with string, int attributes
- {channelname, maxpopulation}
- [GET] /channel (Auth required) - retrieves list of channel
- [PUT] /channel/:id (Auth required) - update channel details
- [DELETE] /channel/:id (Auth required) - delete channel by id
Links:
Todo:
- need to add more fields to models
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.