// Get the Request structure from HTTP request
Get the Request structure from HTTP request
// Get the Request structure from HTTP request
func GetClientRequest(request *http.Request) *jobs.Request {
	buffer, err := ioutil.ReadAll(request.Body)
	if err != nil {
		log.Fatal("Request Body", err)
	}
	var prototype jobs.Request
	result := datastore.Deserialize(buffer, &prototype)
	return result.(*jobs.Request)
}
func GetClientRequest ( request * http . Request ) * jobs . Request { buffer , err := ioutil . ReadAll ( request . Body ) if err != nil { log . Fatal ( " " , err ) } var prototype jobs . Request result := datastore . Deserialize ( buffer , & prototype ) return result . ( * jobs . Request ) }
Get the Request structure from HTTP request
Get the Request structure from HTTP request