Documentation ¶
Index ¶
- func ChangePassword(DB db.Database) func(ctx *gin.Context)
- func CompleteSignup(DB db.Database) func(g *gin.Context)
- func Delete(DB db.Database) func(ctx *gin.Context)
- func GetMajors(DB db.Database) func(ctx *gin.Context)
- func GetTranscriptYears(DB db.Database) func(ctx *gin.Context)
- func Login(DB db.Database) func(ctx *gin.Context)
- func Logout() func(ctx *gin.Context)
- func PreSignup(DB db.Database) func(g *gin.Context)
- func Profile(DB db.Database) func(ctx *gin.Context)
- func RequestPasswordReset(DB db.Database) func(g *gin.Context)
- func ResetPassword(DB db.Database) func(ctx *gin.Context)
- func SearchCurriculum(DB db.Database) func(ctx *gin.Context)
- func SearchTranscript(DB db.Database) func(ctx *gin.Context)
- func Update(DB db.Database) func(ctx *gin.Context)
- func VerifyAccount(DB db.Database) func(g *gin.Context)
- func VerifyEmail(DB db.Database) func(g *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePassword ¶
ChangePassword is a closure for PUT /account/password_change It differs from ResetPassword because the user must be logged in.
func CompleteSignup ¶ added in v1.5.5
CompleteSignup is a closure for the POST /account/create endpoint
func GetTranscriptYears ¶
GetTranscriptYears is a closure for the GET /account/profile/transcript/years endpoint
It retrieves the last years the user has been in USP
func RequestPasswordReset ¶
RequestPasswordReset is a closure for the POST /account/email/password_reset endpoint
func ResetPassword ¶
ResetPassword is a closure for PUT /account/password_reset It differs from ChangePassword because the user does not have to be logged in.
func SearchCurriculum ¶
SearchCurriculum is a closure for the GET /account/profile/curriculum endpoint
It takes an optional query parameter called "optional", which enforces that queried subjects are not obligatory
func SearchTranscript ¶
SearchTranscript is a closure for the GET /account/profile/transcript endpoint
It looks up into the user's transcript and returns the subjects they took in a given year and semester, along with their grades data
func VerifyAccount ¶
VerifyAccount is a closure for the GET /account/verify endpoint
Types ¶
This section is empty.