handler

package
v0.0.0-...-d3ddf1a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 HandlerWrapperFunc func(w http.ResponseWriter, r *http.Request, vars map[string]string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL