Documentation ¶
Index ¶
- func AddVulnMachine(c *gin.Context)
- func Connect_db() (*sql.DB, error)
- func DeleteRoom(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func GetKing(c *gin.Context)
- func GetRoomByID(c *gin.Context)
- func GetRooms(c *gin.Context)
- func GetUserByID(c *gin.Context)
- func GetUsers(c *gin.Context)
- func PostRooms(c *gin.Context)
- func PostUsers(c *gin.Context)
- func PutKing(c *gin.Context)
- func PutRoom(c *gin.Context)
- func PutUser(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddVulnMachine ¶
addVulnMachine adds vulnerable machines to the room based on the specified ID.
func Connect_db ¶
connect to mysql using the credentials in creds.
func DeleteRoom ¶
deleteRoom removes an room based on the specified ID.
func DeleteUser ¶
deleteUser removes an user based on the specified ID.
func GetRoomByID ¶
getRoomByID locates the room whose ID value matches the id parameter sent by the client, then returns that room as a response.
func GetUserByID ¶
getUserByID locates the user whose ID value matches the id parameter sent by the client, then returns that user as a response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.