Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶
type AuthResponse struct {
Token string `json:"token"`
}
AuthResponse response for authentication
type JWTClaims ¶
type JWTClaims struct { User *int64 `json:"user"` jwt.StandardClaims }
JWTClaims custom claims with user id
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the API main server struct
type UserDictionaryItem ¶
type UserDictionaryItem struct { Word db.DictionaryItem UserItem db.UserDictionaryItem }
UserDictionaryItem represents user dictionary item in API response
Click to show internal directories.
Click to hide internal directories.