Documentation
¶
Index ¶
- func ErrorResponse(c echo.Context, statusCode int, message string) error
- func MessageResponse(c echo.Context, statusCode int, message string) error
- func NewPostResponse(posts []models.Post) *[]PostResponse
- func Response(c echo.Context, statusCode int, data interface{}) error
- type Data
- type Error
- type LoginResponse
- type PostResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶
func MessageResponse ¶
func NewPostResponse ¶
func NewPostResponse(posts []models.Post) *[]PostResponse
Types ¶
type LoginResponse ¶
type LoginResponse struct { AccessToken string `json:"accessToken"` RefreshToken string `json:"refreshToken"` Exp int64 `json:"exp"` }
func NewLoginResponse ¶
func NewLoginResponse(token, refreshToken string, exp int64) *LoginResponse
Click to show internal directories.
Click to hide internal directories.