Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuth ¶
type BasicPost ¶
type CreatePostRequest ¶
type CreatePostRequest struct {
BasicPost
}
type LoginRequest ¶
type LoginRequest struct {
BasicAuth
}
type RefreshRequest ¶
type RefreshRequest struct {
Token string `json:"token" validate:"required" example:"refresh_token"`
}
type RegisterRequest ¶
type RegisterRequest struct { BasicAuth Name string `json:"name" validate:"required" example:"John Doe"` }
func (RegisterRequest) Validate ¶
func (rr RegisterRequest) Validate() error
type UpdatePostRequest ¶
type UpdatePostRequest struct {
BasicPost
}
Click to show internal directories.
Click to hide internal directories.