Documentation
¶
Index ¶
- Constants
- func AllotTeamsToMentor(c echo.Context) error
- func GetAbstractFile(c echo.Context) error
- func GetAllotmentCSV(c echo.Context) error
- func GetContriHubRankings(c echo.Context) error
- func GetEventRanking(c echo.Context) error
- func GetUserInfo(c echo.Context) error
- func GoogleCallback(c echo.Context) error
- func GoogleLogin(c echo.Context) error
- func GoogleLogout(c echo.Context) error
- func HelloGO(c echo.Context) error
- func LoginPage(c echo.Context) error
- func RegisterTeam(c echo.Context) error
- func SaveUser(c echo.Context) error
- func UploadAbstractSubmission(c echo.Context) error
- func UploadMidTermEval(c echo.Context) error
- func UserDashboard(c echo.Context) error
Constants ¶
const ( // File size MaxFileSize int64 = 3 << 20 // 3 MB CSVFileSize int64 = 1 << 19 // 512 KB )
Variables ¶
This section is empty.
Functions ¶
func AllotTeamsToMentor ¶
func AllotTeamsToMentor(c echo.Context) error
AllotTeamsToMentor
@Summary Allot teams to mentor @Schemes @Description Allots the teams to the mentor @Tags CodeSangam @Accept json @Produce json @Param event query string true "event" @Success 200 {string} string @Router /v1/cs/allot [post]
func GetAbstractFile ¶
func GetAbstractFile(c echo.Context) error
GetAbstractFile
@Summary Fetch abstract file from server @Schemes @Description Returns the abstract file @Tags CodeSangam @Accept json @Produce application/pdf @Param id query string true "id" @Success 200 {string} string "application/pdf" @Router /v1/cs/abstract [get]
func GetAllotmentCSV ¶
func GetAllotmentCSV(c echo.Context) error
GetAllotmentCSV
@Summary Fetch allotment csv from server @Schemes @Description Returns the allotment csv @Tags CodeSangam @Accept json @Produce text/csv @Param event query string true "event" @Success 200 {string} string "text/csv" @Router /v1/cs/allot [get]
func GetContriHubRankings ¶
func GetContriHubRankings(c echo.Context) error
GetContriHubRankings
@Summary Fetch rankings from ContriHUB @Schemes @Description Returns the list of ranked users @Tags ContriHUB @Accept json @Produce json @Success 200 {object} []models.ContriHUBUser @Router /v1/contrihub/rankings [get]
func GetEventRanking ¶
func GetEventRanking(c echo.Context) error
GetEventRanking
@Summary Fetch event ranking from database @Schemes @Description Returns the event ranking @Tags CodeSangam @Accept json @Produce json @Param event query string true "event" @Success 200 {object} []models.DashboardTeam @Router /v1/cs/ranking [get]
func GetUserInfo ¶
func GetUserInfo(c echo.Context) error
GetUserInfo
@Summary Fetch user info from database @Schemes @Description Returns the user info @Tags CodeSangam @Accept json @Produce json @Success 200 {object} models.DashboardUserDto @Router /v1/cs/user [get]
func GoogleCallback ¶
func GoogleCallback(c echo.Context) error
GoogleCallback
@Summary Callback @Schemes @Description Callback @Tags Auth @Accept json @Produce html @Success 302 {object} map[string]string @Failure 401 {string} Unauthorized @Router /auth/callback [get]
func GoogleLogin ¶
func GoogleLogin(c echo.Context) error
GoogleLogin
@Summary Login @Schemes @Description Login @Tags Auth @Accept json @Produce html @Success 302 {object} map[string]string @Failure 401 {string} Unauthorized @Router /auth/login [get]
func GoogleLogout ¶
func GoogleLogout(c echo.Context) error
GoogleLogout
@Summary Logout @Schemes @Description Logout @Tags Auth @Security OAuth2 @Accept json @Produce html @Success 302 {object} map[string]string @Failure 401 {string} Unauthorized @Router /auth/logout [get]
func HelloGO ¶
func HelloGO(c echo.Context) error
HelloGO
@Summary GO ping @Schemes @Description Do ping @Tags _ @Accept json @Produce json @Success 200 {object} map[string]string @Router /go [get]
func LoginPage ¶
func LoginPage(c echo.Context) error
LoginPage
@Summary Login page @Schemes @Description Login page @Tags Auth @Accept json @Produce html @Success 200 {object} map[string]string @Router /auth [get]
func RegisterTeam ¶
func RegisterTeam(c echo.Context) error
RegisterTeam
@Summary Register team to database for an event @Schemes @Description Registers the team to the database for an event. Members list should not include the leader. @Tags CodeSangam @Accept json @Produce json @Param team body models.RegisterTeamDto true "Team" @Success 200 {object} models.DashboardTeam @Router /v1/cs/register [post]
func SaveUser ¶
func SaveUser(c echo.Context) error
SaveUser
@Summary Save user to database @Schemes @Description Saves the user to the database @Tags CodeSangam @Accept json @Produce json @Param user body models.UserDto true "User" @Success 200 {object} models.User @Router /v1/cs/user [post]
func UploadAbstractSubmission ¶
func UploadAbstractSubmission(c echo.Context) error
UploadAbstractSubmission
@Summary Upload abstract submission to server @Schemes @Description Uploads the abstract submission to the server @Tags CodeSangam @Accept json @Param event formData string true "event" @Param file formData file true "file" @Success 200 {string} string @Router /v1/cs/abstract [post]
func UploadMidTermEval ¶
func UploadMidTermEval(c echo.Context) error
UploadMidTermEval
@Summary Upload mid term evaluation to server @Schemes @Description Uploads the mid term evaluation to the server @Tags CodeSangam @Accept json @Param event formData string true "event" @Param file formData file true "file" @Success 200 {string} string @Router /v1/cs/midterm [post]
func UserDashboard ¶
func UserDashboard(c echo.Context) error
UserDashboard
@Summary Get user profile @Schemes @Description Get user profile @Tags Auth @Security OAuth2 @Accept json @Produce html @Failure 401 {string} Unauthorized @Router /auth/dashboard [get]
Types ¶
This section is empty.