package
module
Version:
v0.0.0-...-3377a85
Opens a new window with list of versions in this module.
Published: Mar 25, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AuthResponse struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn int `json:"expires_in"`
RefreshToken string `json:"refresh_token"`
Scope string `json:"scope"`
}
type Token struct {
UserID string `datastore:"userID"`
ExpiresAt int64 `datastore:"expiresAt"`
AccessToken string `datastore:"accessToken"`
RefreshToken string `datastore:"refreshToken"`
Username string `datastore:"username"`
Discriminator string `datastore:"discriminator"`
Avatar string `datastore:"avatar"`
}
type TokenResponse struct {
UserID string `json:"userID"`
Username string `json:"username"`
Discriminator string `json:"discriminator"`
Avatar string `json:"avatar"`
Token int64 `json:"token"`
}
type UserResponse struct {
ID string `json:"id"`
Username string `json:"username"`
Discriminator string `json:"discriminator"`
Avatar string `json:"avatar"`
PublicFlags int `json:"public_flags"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.