diff controllers/externalwfs.go @ 363:45d4399f6c15

merge
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 08 Aug 2018 18:14:31 +0200
parents ac7e0f980456
children 765e056ab4e8
line wrap: on
line diff
--- a/controllers/externalwfs.go	Wed Aug 08 18:14:16 2018 +0200
+++ b/controllers/externalwfs.go	Wed Aug 08 18:14:31 2018 +0200
@@ -17,9 +17,10 @@
 	"gemma.intevation.de/gemma/config"
 )
 
-type RoundTripFunc func(*http.Request) (*http.Response, error)
+// roundTripFunc is a helper type to make externalWFSDirector a http.RoundTripper.
+type roundTripFunc func(*http.Request) (*http.Response, error)
 
-func (rtf RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error) {
+func (rtf roundTripFunc) RoundTrip(req *http.Request) (*http.Response, error) {
 	return rtf(req)
 }