func SyncHandler(gostruct interface{}) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		if conn, err := Sync(gostruct, w, r); err != nil {
			log.Printf("[velox] sync handler error: %s", err)
		} else {
			conn.Wait()
		}
	})
}
func SyncHandler(gostruct interface{}) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		if conn, err := Sync(gostruct, w, r); err != nil {
			log.Printf("[velox] sync handler error: %s", err)
		} else {
			conn.Wait()
		}
	})
}
//SyncHandler is a small wrapper around Sync which simply synchronises
//all incoming connections. Use Sync if you wish to implement user authentication
//or any other request-time checks.