Documentation ¶
Index ¶
- func HomeHandler(s server.Server) http.HandlerFunc
- func InsertPostHandler(s server.Server) http.HandlerFunc
- func LoginHandler(s server.Server) http.HandlerFunc
- func MeHandler(s server.Server) http.HandlerFunc
- func SignUpHandler(s server.Server) http.HandlerFunc
- type HomeResponse
- type InsertPostRequest
- type LoginResponse
- type PostResponse
- type SignUpRequest
- type SignUpResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HomeHandler ¶
func HomeHandler(s server.Server) http.HandlerFunc
func InsertPostHandler ¶
func InsertPostHandler(s server.Server) http.HandlerFunc
func LoginHandler ¶
func LoginHandler(s server.Server) http.HandlerFunc
func SignUpHandler ¶
func SignUpHandler(s server.Server) http.HandlerFunc
Types ¶
type HomeResponse ¶
type InsertPostRequest ¶
type InsertPostRequest struct {
PostContent string `json:"post_content"`
}
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type PostResponse ¶
type SignUpRequest ¶
type SignUpResponse ¶
Click to show internal directories.
Click to hide internal directories.