func (srv *Server) handlerFunc(ft, argInterfacet reflect.Type) (handlerFunc, error) {
	rt, err := checkHandleType(ft, argInterfacet)
	if err != nil {
		return handlerFunc{}, errgo.Mask(err)
	}
	return handlerFunc{
		unmarshal:   handlerUnmarshaler(ft, rt),
		call:        srv.handlerCaller(ft, rt),
		method:      rt.method,
		pathPattern: rt.path,
	}, nil
}
// handlerFunc returns a function that will call a function of the given type,
// unmarshaling request parameters and marshaling the response as
// appropriate.
handlerFunc returns a function that will call a function of the given type,
unmarshaling request parameters and marshaling the response as
appropriate.
// handlerFunc returns a function that will call a function of the given type // unmarshaling request parameters and marshaling the response as // appropriate .
func (srv *Server) handlerFunc(ft, argInterfacet reflect.Type) (handlerFunc, error) {
	rt, err := checkHandleType(ft, argInterfacet)
	if err != nil {
		return handlerFunc{}, errgo.Mask(err)
	}
	return handlerFunc{
		unmarshal:   handlerUnmarshaler(ft, rt),
		call:        srv.handlerCaller(ft, rt),
		method:      rt.method,
		pathPattern: rt.path,
	}, nil
}
func ( srv * Server ) handlerFunc ( ft , argInterfacet reflect . Type ) ( handlerFunc , error ) { rt , err := checkHandleType ( ft , argInterfacet ) if err != nil { return handlerFunc { } , errgo . Mask ( err ) } return handlerFunc { unmarshal : handlerUnmarshaler ( ft , rt ) , call : srv . handlerCaller ( ft , rt ) , method : rt . method , pathPattern : rt . path , } , nil }
handlerFunc returns a function that will call a function of the given type,
unmarshaling request parameters and marshaling the response as
appropriate.
handlerFunc returns a function that will call a function of the given type unmarshaling request parameters and marshaling the response as appropriate .