TUN-801: Rapid SQL Proxy

This commit is contained in:
rishabh-bector
2018-07-30 16:45:15 -05:00
committed by Areg Harutyunyan
parent aa5e551de6
commit 60ca06d020
55 changed files with 10332 additions and 149 deletions

24
vendor/github.com/gorilla/mux/context_native.go generated vendored Normal file
View File

@@ -0,0 +1,24 @@
// +build go1.7
package mux
import (
"context"
"net/http"
)
func contextGet(r *http.Request, key interface{}) interface{} {
return r.Context().Value(key)
}
func contextSet(r *http.Request, key, val interface{}) *http.Request {
if val == nil {
return r
}
return r.WithContext(context.WithValue(r.Context(), key, val))
}
func contextClear(r *http.Request) {
return
}