Documentation ¶
Index ¶
- type HandlerWrapper
- type HandlerWrapperFunc
- type UsersHandler
- func (uh UsersHandler) GetUserById(w http.ResponseWriter, r *http.Request, vars map[string]string) error
- func (uh UsersHandler) GetUsers(w http.ResponseWriter, r *http.Request, vars map[string]string) error
- func (uh UsersHandler) GetUsersWithPhotos(w http.ResponseWriter, r *http.Request, vars map[string]string) error
- func (uh UsersHandler) SayHello(w http.ResponseWriter, r *http.Request, vars map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerWrapper ¶
type HandlerWrapper struct { // Customize your HandlerWrapper, add any need property... //Error error //Env string Handler HandlerWrapperFunc }
func NewHandlerWrapper ¶
func NewHandlerWrapper(h HandlerWrapperFunc) HandlerWrapper
func (HandlerWrapper) ServeHTTP ¶
func (hw HandlerWrapper) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP allows our HandlerWrapper type to satisfy http.Handler.
type HandlerWrapperFunc ¶
type UsersHandler ¶
type UsersHandler struct { UserFacade connection.UserConnection UserMapper mapper.User }
func NewUsersHandler ¶
func NewUsersHandler(uf connection.UserConnection, um mapper.User) UsersHandler
func (UsersHandler) GetUserById ¶
func (uh UsersHandler) GetUserById(w http.ResponseWriter, r *http.Request, vars map[string]string) error
func (UsersHandler) GetUsers ¶
func (uh UsersHandler) GetUsers(w http.ResponseWriter, r *http.Request, vars map[string]string) error
func (UsersHandler) GetUsersWithPhotos ¶
func (uh UsersHandler) GetUsersWithPhotos(w http.ResponseWriter, r *http.Request, vars map[string]string) error
func (UsersHandler) SayHello ¶
func (uh UsersHandler) SayHello(w http.ResponseWriter, r *http.Request, vars map[string]string) error
handler function has the handler type signature
Click to show internal directories.
Click to hide internal directories.