Mercurial > gemma
comparison controllers/externalwfs.go @ 359:ac7e0f980456
Unexport [Rr]oundTripFunc type.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 08 Aug 2018 10:44:18 +0200 |
parents | 55388227e7da |
children | 765e056ab4e8 |
comparison
equal
deleted
inserted
replaced
358:55388227e7da | 359:ac7e0f980456 |
---|---|
15 "golang.org/x/net/html/charset" | 15 "golang.org/x/net/html/charset" |
16 | 16 |
17 "gemma.intevation.de/gemma/config" | 17 "gemma.intevation.de/gemma/config" |
18 ) | 18 ) |
19 | 19 |
20 type RoundTripFunc func(*http.Request) (*http.Response, error) | 20 // roundTripFunc is a helper type to make externalWFSDirector a http.RoundTripper. |
21 | 21 type roundTripFunc func(*http.Request) (*http.Response, error) |
22 func (rtf RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error) { | 22 |
23 func (rtf roundTripFunc) RoundTrip(req *http.Request) (*http.Response, error) { | |
23 return rtf(req) | 24 return rtf(req) |
24 } | 25 } |
25 | 26 |
26 func externalWFSDirector(req *http.Request) { | 27 func externalWFSDirector(req *http.Request) { |
27 | 28 |