package
0.0.0-20240828184941-667ddf2c5bbc
Repository: https://github.com/allexsen/learning-project.git
Documentation: pkg.go.dev
# Functions
RoomCreate creates a new room.
RoomGet retrieves a room by ID.
RoomGetParticipants retrieves all participants in a room by room ID.
RoomJoin adds a user to a room by room ID.
RoomRemove removes a room and all associated data by room ID.
RoomsGet retrieves all rooms.
UserGetByEmail retrieves user from the database by user email.
UserGetByUsername retrieves user from the database by username.
UserGetIDByEmail retrieves user ID by user email.
UserLogin retrieves bcrypt password hash, authenticates user credentials and, if successful, logs in the user.
UserRegister takes user info, generates bcrypt password hash, and adds the user to the database.