Documentation
¶
Index ¶
Constants ¶
View Source
const ( TeacherAccountType = AccountType("TEACHER") StudentAccountType = AccountType("STUDENT") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountType ¶
type AccountType string
type Credentials ¶
type Credentials struct { ID uuid.UUID Username string Password string AccountType AccountType }
type TokenGenerateRequest ¶
type TokenGenerateResponse ¶
type TokenRefreshRequest ¶
type TokenRefreshRequest struct {
RefreshToken string
}
type TokenRefreshResponse ¶
type TokenRefreshResponse struct {
NewAccessToken string
}
type TokenValidateRequest ¶
type TokenValidateRequest struct {
AccessToken string
}
type TokenValidateResponse ¶
type TokenValidateResponse struct { CredentialsID uuid.UUID Username string AccountType AccountType }
Click to show internal directories.
Click to hide internal directories.