Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrentUser ¶
type CurrentUser struct {
Username string
}
func NewCurrentUser ¶
func NewCurrentUser(username string) CurrentUser
type LoginRequest ¶
type RefreshRequest ¶
type RegisterRequest ¶
type TokenResponse ¶
type TokenResponse struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` TokenType string `json:"token_type"` ExpiresIn int64 `json:"expires_in"` }
func NewTokenResponse ¶
func NewTokenResponse(access_token string) *TokenResponse
Click to show internal directories.
Click to hide internal directories.