Documentation
¶
Overview ¶
Package handler handle requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserServer ¶
type UserServer struct {
Userservice service.UserService
}
UserServer contain all needed dependencies.
func (UserServer) CreateUser ¶
func (server UserServer) CreateUser(w http.ResponseWriter, r *http.Request)
CreateUser create a new user.
func (UserServer) LoginUser ¶
func (server UserServer) LoginUser(w http.ResponseWriter, r *http.Request)
LoginUser create link if user exist.
Click to show internal directories.
Click to hide internal directories.