mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-13 06:48:23 +02:00
inegration: fix linting issues
This commit is contained in:
parent
cb3e78cd01
commit
b11a336a33
8 changed files with 21 additions and 12 deletions
|
@ -1,3 +1,4 @@
|
|||
// Package httputil has helper functions for working with HTTP.
|
||||
package httputil
|
||||
|
||||
import (
|
||||
|
@ -11,6 +12,8 @@ type localRoundTripper struct {
|
|||
portToAddr map[string]string
|
||||
}
|
||||
|
||||
// NewLocalRoundTripper creates a new http.RoundTripper which routes localhost traffic to the remote destinations
|
||||
// defined by `portToAddr`.
|
||||
func NewLocalRoundTripper(underlying http.RoundTripper, portToAddr map[string]string) http.RoundTripper {
|
||||
lrt := &localRoundTripper{underlying: underlying, portToAddr: portToAddr}
|
||||
return lrt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue