Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthRequest ¶
type ErrorResponse ¶
func (ErrorResponse) Encode ¶
func (r ErrorResponse) Encode() ([]byte, error)
type UserByIDRequest ¶
type UserByIDRequest struct {
UserID string `json:"user_id"`
}
type UserLoginResponse ¶
type UserLoginResponse struct {
Message string `json:"status"`
User types.User `json:"user"`
Code int `json:"code"`
Token string `json:"token"`
}
func (UserLoginResponse) Encode ¶
func (r UserLoginResponse) Encode() ([]byte, error)
type UserMEResponse ¶
type UserMEResponse struct {
Message string `json:"status"`
User types.UserWithoutPassword `json:"user"`
Code int `json:"code"`
}
func (UserMEResponse) Encode ¶
func (r UserMEResponse) Encode() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.