get5loader
get5loader copied to clipboard
Web-based get5 match management system. Inspired by https://github.com/splewis/get5-web
I made migration file,edited structures and modified a lot of things and I finally found out. Mongo is better DB in this case. PROS : - I can add/modify structs...
Using session is not good way to use api for developers imo, so support API key to use API
API also needs to support it. (This may take a lot of MySQL DB Queries...)
mark winner forcely and end match immidiately
currently get5 gRPC api has no auth things,which means if port is not protected by firewall, user with no permission can access into gRPC API and control resource.(cuz gRPC API...
``` // PugMatchData Struct for match table. type PugMatchData struct { // Original columns... ID int `gorm:"primary_key;column:id" json:"id"` UserID int `gorm:"column:user_id" json:"user_id"` ServerID int `gorm:"column:server_id" json:"server_id"` Winner sql.NullInt32 `gorm:"column:winner" json:"winner"`...
currently im using ``c.AbortWithError``. front cannot get detailed error logs. so Im thinking to use ``c.AbortWithStatusJSON`` insted to add error message. front-end should not use customized error message if server...
currently `match` table only holds team1id, team2id, serverid and owner id(userid). which means it doent contains team's name, roasters, server name or user names. I know this is pretty normal...