├── .gitignore ├── .github └── workflows │ ├── deploy-release.yaml │ └── test-commit.yaml ├── .goreleaser.yml ├── reader.go ├── go.mod ├── handler ├── handler.go ├── tunnelhandler.go └── proxyhandler.go ├── logging └── logger.go ├── main.go ├── config ├── config_test.go └── config.go ├── README.md ├── gateway.go └── go.sum /.gitignore: -------------------------------------------------------------------------------- 1 | *.json 2 | tunnelify* 3 | dist/ 4 | -------------------------------------------------------------------------------- /.github/workflows/deploy-release.yaml: -------------------------------------------------------------------------------- 1 | name: deploy-release 2 | on: 3 | release: 4 | types: [ published] 5 | jobs: 6 | build-deploy: 7 | runs-on: ubuntu-18.04 8 | env: 9 | GOOS: ${{ matrix.goos }} 10 | steps: 11 | - uses: actions/checkout@v2 12 | - uses: actions/setup-go@v2 13 | - name: Release 14 | uses: goreleaser/goreleaser-action@v2 15 | with: 16 | version: latest 17 | args: release --rm-dist 18 | env: 19 | GITHUB_TOKEN: ${{ secrets.TOKEN }} 20 | -------------------------------------------------------------------------------- /.goreleaser.yml: -------------------------------------------------------------------------------- 1 | # This is an example .goreleaser.yml file with some sane defaults. 2 | # Make sure to check the documentation at http://goreleaser.com 3 | before: 4 | hooks: 5 | # You may remove this if you don't use go modules. 6 | - go mod tidy 7 | # you may remove this if you don't need go generate 8 | - go generate ./... 9 | builds: 10 | - env: 11 | - CGO_ENABLED=0 12 | goos: 13 | - linux 14 | - darwin 15 | - freebsd 16 | - windows 17 | archives: 18 | - format_overrides: 19 | - goos: windows 20 | format: zip 21 | replacements: 22 | darwin: mac 23 | linux: linux 24 | windows: windows 25 | 386: i386 26 | amd64: x86_64 27 | checksum: 28 | name_template: 'checksums.txt' 29 | snapshot: 30 | name_template: "{{ .Tag }}-next" 31 | changelog: 32 | sort: asc 33 | filters: 34 | exclude: 35 | - '^docs:' 36 | - '^test:' 37 | -------------------------------------------------------------------------------- /reader.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "bytes" 5 | "io" 6 | "net" 7 | ) 8 | 9 | // Read wrapper is a wrapper around an io.ReadWriter 10 | // Writing to this, writes to the underlying ReadWriter , 11 | // while reading from it, reads from the buffer first, before reading the underlying io.ReadWriter 12 | // once the buffer is empty it can't be read from again. See io.MultiReader 13 | type ConnectionReader struct { 14 | net.Conn 15 | 16 | multiReader io.Reader 17 | } 18 | 19 | func NewConnectionReader(rw net.Conn, prepend ...[]byte) *ConnectionReader { 20 | cw := ConnectionReader{ 21 | Conn: rw, 22 | } 23 | readers := make([]io.Reader, len(prepend)+1) 24 | for i, item := range prepend { 25 | readers[i] = bytes.NewBuffer(item) 26 | } 27 | readers[len(readers)-1] = rw 28 | cw.multiReader = io.MultiReader(readers...) 29 | return &cw 30 | } 31 | 32 | func (cr *ConnectionReader) Read(p []byte) (int, error) { 33 | return cr.multiReader.Read(p) 34 | } 35 | -------------------------------------------------------------------------------- /.github/workflows/test-commit.yaml: -------------------------------------------------------------------------------- 1 | #TODO: setup build cache 2 | name: test-commit 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | types: [opened] 9 | jobs: 10 | test-build: 11 | runs-on: ubuntu-18.04 12 | steps: 13 | - uses: actions/checkout@v2 14 | - uses: actions/setup-go@v2 15 | with: 16 | go-version: 1.16 17 | - name: Module verify 18 | run: go mod verify 19 | - name: Run tests 20 | run: go test -v ./... 21 | - name: gofmt check 22 | #TODO: better solution to failing and displaying than running twice 23 | run: | 24 | gofmt -s -d . 25 | test -z $(gofmt -s -d .) 26 | - name: Staticheck analysis 27 | run: | 28 | export PATH=$PATH:$(go env GOPATH)/bin 29 | go get honnef.co/go/tools/cmd/staticcheck@2020.2.1 30 | staticcheck ./... 31 | - name: Test build 32 | run: go build . 33 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/kofoworola/tunnelify 2 | 3 | go 1.14 4 | 5 | require ( 6 | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect 7 | github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect 8 | github.com/google/go-cmp v0.5.5 9 | github.com/pkg/errors v0.9.1 // indirect 10 | github.com/spf13/pflag v1.0.5 // indirect 11 | github.com/spf13/viper v1.7.1 12 | github.com/stretchr/testify v1.7.0 // indirect 13 | go.uber.org/multierr v1.6.0 // indirect 14 | go.uber.org/zap v1.16.0 15 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect 16 | golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005 // indirect 17 | golang.org/x/text v0.3.5 // indirect 18 | golang.org/x/tools v0.1.0 // indirect 19 | gopkg.in/alecthomas/kingpin.v2 v2.2.6 20 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect 21 | gopkg.in/yaml.v2 v2.3.0 // indirect 22 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect 23 | honnef.co/go/tools v0.0.1-2020.1.4 // indirect 24 | ) 25 | -------------------------------------------------------------------------------- /handler/handler.go: -------------------------------------------------------------------------------- 1 | package handler 2 | 3 | import ( 4 | "fmt" 5 | "io" 6 | "net/http" 7 | "strings" 8 | 9 | "github.com/kofoworola/tunnelify/config" 10 | "github.com/kofoworola/tunnelify/logging" 11 | ) 12 | 13 | type CloseFunc func() error 14 | 15 | type ConnectionHandler interface { 16 | Handle(logger *logging.Logger) 17 | } 18 | 19 | func WriteResponse(out io.Writer, version string, status string, header http.Header) error { 20 | var builder strings.Builder 21 | if _, err := builder.WriteString(fmt.Sprintf("%s %s\n", version, status)); err != nil { 22 | return err 23 | } 24 | 25 | if _, err := builder.WriteString(fmt.Sprintf("%s: 0\n", contentLength)); err != nil { 26 | return err 27 | } 28 | for key, val := range header { 29 | for _, item := range val { 30 | headerLine := fmt.Sprintf("%s: %s\n", key, item) 31 | if _, err := builder.WriteString(headerLine); err != nil { 32 | return err 33 | } 34 | } 35 | } 36 | builder.WriteString("\n") 37 | if _, err := out.Write([]byte(builder.String())); err != nil { 38 | return err 39 | } 40 | return nil 41 | } 42 | 43 | // checkAuthorization checks if the authorization string matches the request 44 | func checkAuthorization(cfg *config.Config, req *http.Request) bool { 45 | if cfg.HasAuth() { 46 | authHeader, ok := req.Header[proxyAuthorization] 47 | if !ok { 48 | return false 49 | } 50 | 51 | authString := authHeader[0] 52 | return cfg.CheckAuthString(authString) 53 | } 54 | return true 55 | } 56 | -------------------------------------------------------------------------------- /logging/logger.go: -------------------------------------------------------------------------------- 1 | package logging 2 | 3 | import ( 4 | "time" 5 | 6 | "github.com/kofoworola/tunnelify/config" 7 | "go.uber.org/zap" 8 | "go.uber.org/zap/zapcore" 9 | ) 10 | 11 | type Logger struct { 12 | *zap.Logger 13 | } 14 | 15 | func NewLogger(cfg *config.Config) (*Logger, error) { 16 | logPaths := append([]string{"stderr"}, cfg.Logging...) 17 | 18 | prodEncoderConfig := zap.NewProductionEncoderConfig() 19 | prodEncoderConfig.EncodeTime = zapcore.TimeEncoderOfLayout(time.RFC3339) 20 | 21 | config := zap.Config{ 22 | Level: zap.NewAtomicLevelAt(zapcore.WarnLevel), 23 | Encoding: "json", 24 | EncoderConfig: prodEncoderConfig, 25 | OutputPaths: logPaths, 26 | } 27 | if cfg.Debug { 28 | config.Level = zap.NewAtomicLevelAt(zapcore.DebugLevel) 29 | } 30 | 31 | logger, err := config.Build() 32 | if err != nil { 33 | return nil, err 34 | } 35 | return &Logger{logger}, nil 36 | } 37 | 38 | func (l *Logger) LogError(msg string, err error) { 39 | if err != nil { 40 | l.Logger.Error( 41 | msg, 42 | zapcore.Field{ 43 | Key: "error", 44 | String: err.Error(), 45 | Type: zapcore.StringType, 46 | }) 47 | } 48 | } 49 | 50 | func (l *Logger) With(key, val string) *Logger { 51 | return &Logger{ 52 | l.Logger.With(zapcore.Field{ 53 | Key: key, 54 | String: val, 55 | Type: zapcore.StringType, 56 | }), 57 | } 58 | } 59 | 60 | func (l *Logger) Warn(msg string, err error) { 61 | if err == nil { 62 | l.Logger.Warn(msg) 63 | return 64 | } 65 | l.Logger.Warn( 66 | msg, 67 | zapcore.Field{ 68 | Key: "error", 69 | String: err.Error(), 70 | Type: zapcore.StringType, 71 | }) 72 | 73 | } 74 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "context" 5 | "log" 6 | "net" 7 | "net/http" 8 | "os" 9 | "os/signal" 10 | 11 | "github.com/kofoworola/tunnelify/config" 12 | "gopkg.in/alecthomas/kingpin.v2" 13 | ) 14 | 15 | var ( 16 | app = kingpin.New("proxify", "A lightweight and easily deployable proxy server written in go") 17 | start = app.Command("start", "start the proxify server.") 18 | configFile = start.Arg("config", "config file to start proxify server with.").String() 19 | ) 20 | 21 | func main() { 22 | ch := make(chan os.Signal, 1) 23 | signal.Notify(ch, os.Interrupt) 24 | 25 | ctx, cancel := context.WithCancel(context.Background()) 26 | go func() { 27 | <-ch 28 | cancel() 29 | }() 30 | switch kingpin.MustParse(app.Parse(os.Args[1:])) { 31 | case start.FullCommand(): 32 | config, err := config.LoadConfig(*configFile) 33 | if err != nil { 34 | log.Fatalf("error loading configuration: %v", err) 35 | } 36 | log.Printf("server listening on :%s", config.Port) 37 | gateway, err := NewGateway(config) 38 | if err != nil { 39 | log.Fatalf("error creating server: %v", err) 40 | } 41 | go func() { 42 | if err := gateway.Start(); err != nil { 43 | log.Fatalf("error starting server: %v", err) 44 | } 45 | }() 46 | 47 | go func() { 48 | if err := StartServer(config, gateway); err != nil { 49 | log.Fatalf("error running liveness server: %v", err) 50 | } 51 | }() 52 | 53 | <-ctx.Done() 54 | log.Println("shutting down server...") 55 | gateway.Close() 56 | } 57 | } 58 | 59 | func StartServer(cfg *config.Config, listener net.Listener) error { 60 | if cfg.LivenessStatus == 0 { 61 | return nil 62 | } 63 | http.HandleFunc(cfg.LivenessPath, func(writer http.ResponseWriter, req *http.Request) { 64 | writer.WriteHeader(cfg.LivenessStatus) 65 | writer.Write([]byte(cfg.LivenessBody)) 66 | }) 67 | 68 | return http.Serve(listener, http.DefaultServeMux) 69 | } 70 | -------------------------------------------------------------------------------- /config/config_test.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "encoding/base64" 5 | "os" 6 | "testing" 7 | "time" 8 | 9 | "github.com/google/go-cmp/cmp" 10 | ) 11 | 12 | func TestConfigCreatedViaEnv(t *testing.T) { 13 | osConfigValue := map[string]string{ 14 | "SERVER_PORT": "2000", 15 | "HIDEIP": "true", 16 | } 17 | for key, val := range osConfigValue { 18 | if err := os.Setenv(key, val); err != nil { 19 | t.Fatalf("error setting env value %s", key) 20 | } 21 | } 22 | want := &Config{ 23 | Port: osConfigValue["SERVER_PORT"], 24 | HideIP: true, 25 | Timeout: time.Second * 30, 26 | LivenessPath: "/", 27 | } 28 | 29 | got, err := LoadConfig("") 30 | if err != nil { 31 | t.Fatalf("error creating config: %v", err) 32 | } 33 | 34 | if diff := cmp.Diff(want, got); diff != "" { 35 | t.Fatalf("LoadConfig mismatch (-want,+got):\n%s", diff) 36 | } 37 | } 38 | 39 | func TestConfigAuthCheck(t *testing.T) { 40 | authString := base64.StdEncoding.EncodeToString([]byte("user:pass")) 41 | if err := os.Setenv("SERVER_AUTH", "user:pass"); err != nil { 42 | t.Fatalf("error setting env value %v", err) 43 | } 44 | cfg, err := LoadConfig("") 45 | if err != nil { 46 | t.Fatalf("error creating config: %v", err) 47 | } 48 | 49 | if !cfg.HasAuth() { 50 | t.Errorf("expected true for HasAuth, got false instead") 51 | } 52 | 53 | if !cfg.CheckAuthString("Basic " + authString) { 54 | t.Errorf("expected true for verified, got false") 55 | } 56 | } 57 | 58 | func TestALlowedIP(t *testing.T) { 59 | t.Run("AllowAll", func(t *testing.T) { 60 | cfg, err := LoadConfig("") 61 | if err != nil { 62 | t.Fatalf("error creating config: %v", err) 63 | } 64 | 65 | if got := cfg.ShouldAllowIP("127.0.0.1:123"); !got { 66 | t.Errorf("expected true got %t", got) 67 | } 68 | 69 | }) 70 | 71 | t.Run("NoAllowAll", func(t *testing.T) { 72 | if err := os.Setenv("ALLOWEDIP", "127.0.0.1"); err != nil { 73 | t.Fatalf("error setting env value %v", err) 74 | } 75 | 76 | cfg, err := LoadConfig("") 77 | if err != nil { 78 | t.Fatalf("error creating config: %v", err) 79 | } 80 | 81 | testCases := []struct { 82 | address string 83 | expected bool 84 | }{ 85 | { 86 | address: "127.0.0.1:123", 87 | expected: true, 88 | }, 89 | { 90 | address: "127.0.0.1", 91 | expected: true, 92 | }, 93 | { 94 | address: "127.0.0.3", 95 | expected: false, 96 | }, 97 | } 98 | 99 | for _, item := range testCases { 100 | if got := cfg.ShouldAllowIP(item.address); got != item.expected { 101 | t.Errorf("expected %t for %s , got %t", item.expected, item.address, got) 102 | } 103 | } 104 | 105 | }) 106 | } 107 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Tunnelify 2 | Tunnelify is a deployable proxy server and tunnel written in go 3 | 4 | [Installing](#installing) | [Quickstart](#quickstart) | [Configuration](#configuration) 5 | 6 | 7 | ## Installing 8 | 9 | ### Direct download 10 | You can install tunnelify by manually downloading the executable for your operating system via the releases page with: 11 | ```sh 12 | $ wget https://github.com/kofoworola/tunnelify/releases/download/v0.1.0/tunnelify_0.1.0_mac_x86_64.tar.gz 13 | ``` 14 | 15 | Then extract it to your preferred location with: 16 | ```sh 17 | $ tar -xf https://github.com/kofoworola/tunnelify/releases/download/v0.1.0/tunnelify_0.1.0_mac_x86_64.tar.gz 18 | ``` 19 | 20 | 21 | ### Using go get 22 | You can use go get to compile and install tunnelify directly to your `$GOPATH/bin` 23 | 24 | ```sh 25 | $ go get github.com/kofoworola/tunnelify 26 | ``` 27 | 28 | ## Quickstart 29 | After installing tunnelify, run this to start up the proxy: 30 | ```sh 31 | $ tunnelify start 32 | ``` 33 | 34 | Now the proxy is listening on whatever value is set in your config's `server.host` value and is proxying every request sent through it. 35 | 36 | 37 | ## Configuration 38 | Recommended configuration format is json, but tunnelify also supports toml and yaml. 39 | Config values can also be set via Environment variables. For example, to set the value of `server.host` via 40 | Environments, update the value of the `SERVER_HOST`; essentially replace all `.` in the key with `_` and 41 | change to upper case. 42 | 43 | ### Available config values 44 | | Name | Type | Description | Default | 45 | |----------|------|-----------------------| ----- | 46 | | `debug` | boolean | If set to true, debug log will be sent along side warning and error logs | `false` | 47 | | `server.port`| string | Port the proxy's server will listen on | null| 48 | | `server.auth`| []string| Array of allowed [Basic](https://tools.ietf.org/html/rfc7617) authorization strings in the form `user-id:password`| [] | 49 | | `server.health.status` | int | Status code to respond with when liveness checks (Get requests to `server.host`) are made, an empty status code means tunnelify will not respond to liveness checks | nil | 50 | | `server.health.path` | string | URL path to listen to for liveness checks | `/` | 51 | | `server.health.body` | string | Body of response to liveness checks | "" | 52 | | `server.timeout` | duration| Amount of time the proxy will attempt to establish an outbound connection for | 30s | 53 | | `hideIP` | boolean | Hide the IP of the source of the request | false | 54 | | `logging` | []string | An array of file or URL paths to write logging to (logs are written to `stderr` regardless | [] | 55 | | `allowedIP` | []string| An array of IPs that should be allowed to access the server. Nil or empty means no IP filtering will be in place | [] | 56 | 57 | -------------------------------------------------------------------------------- /config/config.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "encoding/base64" 5 | "errors" 6 | "fmt" 7 | "strings" 8 | "time" 9 | 10 | "github.com/spf13/viper" 11 | ) 12 | 13 | type Config struct { 14 | Port string 15 | HideIP bool 16 | Auth []string 17 | Logging []string 18 | Timeout time.Duration 19 | AllowedIP []string 20 | LivenessStatus int 21 | LivenessBody string 22 | LivenessPath string 23 | Debug bool 24 | } 25 | 26 | var defaults = map[string]interface{}{ 27 | "hideIP": false, 28 | "server.timeout": time.Second * 30, 29 | "server.health.path": "/", 30 | } 31 | 32 | func init() { 33 | for key, item := range defaults { 34 | viper.SetDefault(key, item) 35 | } 36 | } 37 | 38 | func LoadConfig(path string) (*Config, error) { 39 | if path != "" { 40 | viper.SetConfigFile(path) 41 | if err := viper.ReadInConfig(); err != nil { 42 | return nil, fmt.Errorf("error loading configuration file: %w", err) 43 | } 44 | 45 | } 46 | viper.AutomaticEnv() 47 | viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) 48 | cfg := &Config{ 49 | Port: viper.GetString("server.port"), 50 | HideIP: viper.GetBool("hideIP"), 51 | Auth: viper.GetStringSlice("server.auth"), 52 | Logging: viper.GetStringSlice("logging"), 53 | Timeout: viper.GetDuration("server.timeout"), 54 | AllowedIP: viper.GetStringSlice("allowedIP"), 55 | LivenessStatus: viper.GetInt("server.health.status"), 56 | LivenessBody: viper.GetString("server.health.body"), 57 | LivenessPath: viper.GetString("server.health.path"), 58 | Debug: viper.GetBool("debug"), 59 | } 60 | 61 | if err := cfg.Validate(); err != nil { 62 | return nil, err 63 | } 64 | return cfg, nil 65 | } 66 | 67 | func (c *Config) Validate() error { 68 | if c.Port == "" { 69 | return errors.New("server.host value can not be empty") 70 | } 71 | return nil 72 | } 73 | 74 | func (c *Config) CheckAuthString(auth string) bool { 75 | split := strings.Split(auth, " ") 76 | if len(split) != 2 || split[0] != "Basic" { 77 | return false 78 | } 79 | 80 | auth = split[1] 81 | decoded, err := base64.StdEncoding.DecodeString(auth) 82 | if err != nil { 83 | return false 84 | } 85 | var found bool 86 | for _, item := range c.Auth { 87 | if string(decoded) == item { 88 | found = true 89 | break 90 | } 91 | } 92 | return found 93 | } 94 | 95 | func (c *Config) HasAuth() bool { 96 | return len(c.Auth) > 0 97 | } 98 | 99 | func (c *Config) ShouldAllowIP(addr string) bool { 100 | if len(c.AllowedIP) < 1 { 101 | return true 102 | } 103 | cutPos := len(addr) 104 | if pos := strings.Index(addr, ":"); pos != -1 { 105 | cutPos = pos 106 | } 107 | addr = addr[:cutPos] 108 | 109 | found := false 110 | for _, item := range c.AllowedIP { 111 | if item == addr { 112 | found = true 113 | break 114 | } 115 | } 116 | return found 117 | } 118 | -------------------------------------------------------------------------------- /handler/tunnelhandler.go: -------------------------------------------------------------------------------- 1 | package handler 2 | 3 | import ( 4 | "bufio" 5 | "fmt" 6 | "io" 7 | "net" 8 | "net/http" 9 | "sync" 10 | 11 | "github.com/kofoworola/tunnelify/config" 12 | "github.com/kofoworola/tunnelify/logging" 13 | ) 14 | 15 | const bufferSize = 4096 16 | 17 | var wg sync.WaitGroup 18 | 19 | type TunnelHandler struct { 20 | incoming io.ReadWriter 21 | outgoing net.Conn 22 | 23 | serverURL string 24 | httpVersion string 25 | 26 | closeConn CloseFunc 27 | 28 | cfg *config.Config 29 | } 30 | 31 | func NewTunnelHandler(cfg *config.Config, incoming io.ReadWriter, server string, httpVersion string, closeConn CloseFunc) *TunnelHandler { 32 | return &TunnelHandler{ 33 | incoming: incoming, 34 | serverURL: server, 35 | httpVersion: httpVersion, 36 | closeConn: closeConn, 37 | cfg: cfg, 38 | } 39 | } 40 | 41 | func (h *TunnelHandler) Handle(logger *logging.Logger) { 42 | logger = logger.With("type", "tunnel") 43 | 44 | // get first req 45 | req, err := http.ReadRequest(bufio.NewReader(h.incoming)) 46 | if err != nil { 47 | logger.Warn("could not read request", nil) 48 | return 49 | } 50 | // check the authorization 51 | if !checkAuthorization(h.cfg, req) { 52 | logger.Debug("connection not authorized") 53 | if err := WriteResponse( 54 | h.incoming, 55 | req.Proto, 56 | "407 Proxy Authentication Required", 57 | http.Header{ 58 | proxyAuthenticate: {`Basic realm="Access to the internal site"`}, 59 | }); err != nil { 60 | logger.Warn("error writing response", err) 61 | } 62 | return 63 | 64 | } 65 | 66 | if h.outgoing == nil { 67 | c, err := h.setupOutbound() 68 | if err != nil { 69 | logger.Warn("could not setup outbound", err) 70 | return 71 | } 72 | defer c() 73 | response := fmt.Sprintf("%s 200 OK\n\n", h.httpVersion) 74 | h.incoming.Write([]byte(response)) 75 | } 76 | wg.Add(2) 77 | go readAndWrite(logger, h.incoming, h.outgoing) 78 | go readAndWrite(logger, h.outgoing, h.incoming) 79 | 80 | // handle this properly because it is going to be impossible to close the connections 81 | // from this (the tunnel) end atm 82 | wg.Wait() 83 | h.closeConn() 84 | } 85 | 86 | func readAndWrite(logger *logging.Logger, readFrom io.Reader, writeTo io.Writer) { 87 | defer wg.Done() 88 | for { 89 | var shouldBreak bool 90 | dat := make([]byte, bufferSize) 91 | n, err := readFrom.Read(dat) 92 | if err != nil { 93 | shouldBreak = true 94 | if err != io.EOF { 95 | logger.Warn("couldn't read bytes", err) 96 | break 97 | } 98 | } 99 | dat = dat[:n] 100 | 101 | if _, err := writeTo.Write(dat); err != nil { 102 | logger.Warn("couldn't write bytes", err) 103 | break 104 | } 105 | if shouldBreak { 106 | break 107 | } 108 | } 109 | } 110 | 111 | func (h *TunnelHandler) setupOutbound() (func() error, error) { 112 | conn, err := net.DialTimeout("tcp", h.serverURL, h.cfg.Timeout) 113 | if err != nil { 114 | return nil, err 115 | } 116 | h.outgoing = conn 117 | return conn.Close, err 118 | } 119 | -------------------------------------------------------------------------------- /gateway.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "bufio" 5 | "fmt" 6 | "net" 7 | "strings" 8 | 9 | "github.com/kofoworola/tunnelify/config" 10 | "github.com/kofoworola/tunnelify/handler" 11 | "github.com/kofoworola/tunnelify/logging" 12 | ) 13 | 14 | const defaultBufferSize = 2048 15 | 16 | type listenerGateway struct { 17 | net.Listener 18 | 19 | connChan chan net.Conn 20 | listenerErr error 21 | 22 | config *config.Config 23 | logger *logging.Logger 24 | } 25 | 26 | func NewGateway(cfg *config.Config) (*listenerGateway, error) { 27 | logger, err := logging.NewLogger(cfg) 28 | if err != nil { 29 | return nil, fmt.Errorf("error creating logger: %w", err) 30 | } 31 | 32 | listener, err := net.Listen("tcp", ":"+cfg.Port) 33 | if err != nil { 34 | return nil, fmt.Errorf("error creating listener for %s: %w", cfg.Port, err) 35 | } 36 | 37 | return &listenerGateway{ 38 | Listener: listener, 39 | connChan: make(chan net.Conn, 1), 40 | config: cfg, 41 | logger: logger, 42 | }, nil 43 | } 44 | 45 | func (l *listenerGateway) Accept() (net.Conn, error) { 46 | if l.listenerErr != nil { 47 | return nil, l.listenerErr 48 | } 49 | c := <-l.connChan 50 | l.logger.Debug("connection forwarded to liveness server") 51 | return c, nil 52 | } 53 | 54 | // Start listnes for new connections from the core listener, 55 | // then determines how to handle it. Either passing it to the proxy handler, 56 | // the tunnel handler, or sending it to the connection channel for it's own Accept() method. 57 | func (l *listenerGateway) Start() error { 58 | // listen to new connections 59 | for { 60 | c, err := l.Listener.Accept() 61 | if err != nil { 62 | l.listenerErr = err 63 | l.logger.LogError("error accepting a new connection", err) 64 | break 65 | } 66 | l.logger.Debug("received new connection") 67 | var h handler.ConnectionHandler 68 | 69 | // read first line of the connection and use an appropriate handler 70 | r := bufio.NewReaderSize(c, defaultBufferSize) 71 | reqLine, err := r.ReadBytes('\n') 72 | if err != nil { 73 | l.logger.LogError("error reading request line from connection", err) 74 | continue 75 | } 76 | 77 | // use the length of the first line to determine the content of the buffer 78 | // and fetch that to prepend to the connection 79 | bufferContent := make([]byte, defaultBufferSize-len(reqLine)) 80 | n, err := r.Read(bufferContent) 81 | if err != nil { 82 | l.logger.LogError("error reading request from connection", err) 83 | continue 84 | } 85 | 86 | // make sure the length of what was read is the same as the length of the bufferContent 87 | // if not trim it 88 | if n < len(bufferContent) { 89 | bufferContent = bufferContent[:n] 90 | } 91 | 92 | // check the reqline for the handler to use 93 | reqDetails := strings.Split(string(reqLine), " ") 94 | if len(reqDetails) != 3 { 95 | l.logger.LogError("invalid request start line", nil) 96 | continue 97 | } 98 | 99 | logger := l.logger.With("action", reqDetails[0]) 100 | cr := NewConnectionReader(c, reqLine, bufferContent) 101 | if reqDetails[0] == "CONNECT" { 102 | h = handler.NewTunnelHandler(l.config, cr, reqDetails[1], strings.TrimSpace(reqDetails[2]), c.Close) 103 | } else if reqDetails[0] != "CONNECT" && !strings.HasPrefix(reqDetails[1], "/") { 104 | h = handler.NewProxyHandler(cr, c.RemoteAddr().String(), l.config, c.Close) 105 | } else { 106 | l.connChan <- cr 107 | } 108 | 109 | if h != nil { 110 | // check if allowed 111 | if !l.config.ShouldAllowIP(c.RemoteAddr().String()) { 112 | handler.WriteResponse(c, "HTTP/1.1", "403 Forbidden", nil) 113 | c.Close() 114 | continue 115 | } 116 | go h.Handle(logger) 117 | } 118 | } 119 | return nil 120 | } 121 | -------------------------------------------------------------------------------- /handler/proxyhandler.go: -------------------------------------------------------------------------------- 1 | package handler 2 | 3 | import ( 4 | "bufio" 5 | "fmt" 6 | "io" 7 | "net" 8 | "net/http" 9 | "net/url" 10 | 11 | "github.com/kofoworola/tunnelify/config" 12 | "github.com/kofoworola/tunnelify/logging" 13 | ) 14 | 15 | // Header Keys 16 | const ( 17 | proxyConnectionKey = "Proxy-Connection" 18 | forwardedForKey = "X-Forwarded-For" 19 | forwardedHost = "X-Forwarded-Host" 20 | proxyAuthorization = "Proxy-Authorization" 21 | proxyAuthenticate = "Proxy-Authenticate" 22 | contentLength = "Content-Length" 23 | ) 24 | 25 | type Request struct { 26 | URI string 27 | Version string 28 | Method string 29 | Headers map[string]string 30 | Body io.Reader 31 | } 32 | 33 | type ProxyHandler struct { 34 | incoming io.ReadWriter 35 | outgoing net.Conn 36 | 37 | connClose CloseFunc 38 | 39 | originIP string 40 | cfg *config.Config 41 | } 42 | 43 | func NewProxyHandler(reader io.ReadWriter, originIp string, config *config.Config, closeFunc CloseFunc) *ProxyHandler { 44 | // the reason we don't dial initially to the server is to prevent a bottleneck 45 | // for multiple proxy connections coming in 46 | return &ProxyHandler{ 47 | incoming: reader, 48 | connClose: closeFunc, 49 | originIP: originIp, 50 | cfg: config, 51 | } 52 | } 53 | 54 | func (p *ProxyHandler) Handle(logger *logging.Logger) { 55 | logger = logger.With("type", "proxy") 56 | 57 | for { 58 | req, err := http.ReadRequest(bufio.NewReader(p.incoming)) 59 | if err != nil { 60 | // if it is an EOF error, close the connection and carry on 61 | if err == io.EOF { 62 | p.connClose() 63 | return 64 | } 65 | logger.Warn("error parsing request", nil) 66 | return 67 | } 68 | logger.Debug("received new request") 69 | 70 | // setup outgoing connection if it hasn't been setUp 71 | if p.outgoing == nil { 72 | addr := fmt.Sprintf("%s:%s", req.URL.Host, req.URL.Scheme) 73 | conn, err := net.DialTimeout("tcp", addr, p.cfg.Timeout) 74 | if err != nil { 75 | logger.Warn("error dialing destination server", nil) 76 | p.connClose() 77 | break 78 | } 79 | p.outgoing = conn 80 | go p.listenToServerIncoming(logger) 81 | defer conn.Close() 82 | } 83 | 84 | // check the authorization 85 | if !checkAuthorization(p.cfg, req) { 86 | logger.Debug("request not authorized") 87 | if err := WriteResponse( 88 | p.incoming, 89 | req.Proto, 90 | "407 Proxy Authentication Required", 91 | http.Header{ 92 | proxyAuthenticate: {`Basic realm="Access to the internal site"`}, 93 | }); err != nil { 94 | logger.Warn("error writing response", nil) 95 | } 96 | continue 97 | } 98 | 99 | if err := p.prepareRequest(req); err != nil { 100 | logger.Warn("error forwarding request", err) 101 | continue 102 | } 103 | if err := req.Write(p.outgoing); err != nil { 104 | logger.Warn("error forwarding request", err) 105 | continue 106 | } 107 | shouldClose := p.shouldCloseConnection(req) 108 | if shouldClose { 109 | break 110 | } 111 | } 112 | if err := p.connClose(); err != nil { 113 | logger.Warn("error closing connection", nil) 114 | } 115 | } 116 | 117 | func (p *ProxyHandler) listenToServerIncoming(logger *logging.Logger) { 118 | reader := bufio.NewReader(p.outgoing) 119 | for { 120 | line, err := reader.ReadBytes('\n') 121 | if err != nil { 122 | if err == io.EOF { 123 | break 124 | } 125 | logger.Warn("could not read response from server", err) 126 | break 127 | } 128 | // TODO fix code reaching here 129 | if _, err := p.incoming.Write(line); err != nil { 130 | logger.Warn("error writing to client", err) 131 | } 132 | } 133 | } 134 | 135 | // prepareRequest prepares the request to be sent to the server 136 | // by removing the RequestURI and setting the req.URL 137 | // then formating the headers 138 | func (p *ProxyHandler) prepareRequest(req *http.Request) error { 139 | url, err := url.Parse(req.RequestURI) 140 | if err != nil { 141 | return err 142 | } 143 | req.URL = url 144 | req.RequestURI = "" 145 | delete(req.Header, proxyConnectionKey) 146 | 147 | // add origin ip if enabled in config 148 | if !p.cfg.HideIP { 149 | forwarded, ok := req.Header[forwardedForKey] 150 | if !ok || len(forwarded) < 1 { 151 | req.Header.Set(forwardedForKey, p.originIP) 152 | } else { 153 | req.Header.Set(forwardedForKey, fmt.Sprintf("%s, %s", forwarded[0], p.originIP)) 154 | } 155 | req.Header.Set(forwardedHost, req.Host) 156 | } 157 | return nil 158 | } 159 | 160 | func (p *ProxyHandler) shouldCloseConnection(req *http.Request) bool { 161 | val, ok := req.Header[proxyConnectionKey] 162 | // key doesn't exist in headers, don't close the connection 163 | if !ok { 164 | return false 165 | } 166 | found := false 167 | for _, i := range val { 168 | if i == "close" { 169 | found = true 170 | break 171 | } 172 | } 173 | return found 174 | } 175 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 6 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 7 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 8 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 9 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 10 | cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= 11 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 12 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 13 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 14 | github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= 15 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 16 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 17 | github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= 18 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 19 | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM= 20 | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 21 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 22 | github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 h1:AUNCr9CiJuwrRYS3XieqF+Z9B9gNxo/eANAJCF2eiN4= 23 | github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= 24 | github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= 25 | github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= 26 | github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= 27 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 28 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 29 | github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= 30 | github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= 31 | github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= 32 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 33 | github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= 34 | github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= 35 | github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= 36 | github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= 37 | github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= 38 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 39 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 40 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 41 | github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= 42 | github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= 43 | github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= 44 | github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= 45 | github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= 46 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 47 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 48 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 49 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 50 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= 51 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 52 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 53 | github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= 54 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 55 | github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 56 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 57 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 58 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 59 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 60 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 61 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 62 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 63 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 64 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 65 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 66 | github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= 67 | github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 68 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 69 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 70 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 71 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 72 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 73 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 74 | github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= 75 | github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= 76 | github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= 77 | github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= 78 | github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= 79 | github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= 80 | github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= 81 | github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= 82 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 83 | github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= 84 | github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= 85 | github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= 86 | github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= 87 | github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= 88 | github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= 89 | github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= 90 | github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 91 | github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 92 | github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= 93 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 94 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 95 | github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= 96 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= 97 | github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= 98 | github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= 99 | github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= 100 | github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= 101 | github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= 102 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 103 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 104 | github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= 105 | github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= 106 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 107 | github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= 108 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 109 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 110 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 111 | github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= 112 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 113 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 114 | github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= 115 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 116 | github.com/magiconair/properties v1.8.1 h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzRKO2BQ4= 117 | github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= 118 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= 119 | github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= 120 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 121 | github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= 122 | github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= 123 | github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 124 | github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= 125 | github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= 126 | github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= 127 | github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 128 | github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE= 129 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 130 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 131 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 132 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 133 | github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= 134 | github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= 135 | github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= 136 | github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= 137 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 138 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 139 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= 140 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 141 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 142 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 143 | github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= 144 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 145 | github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= 146 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 147 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 148 | github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= 149 | github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 150 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 151 | github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 152 | github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= 153 | github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= 154 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 155 | github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= 156 | github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= 157 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 158 | github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= 159 | github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= 160 | github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= 161 | github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= 162 | github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= 163 | github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= 164 | github.com/spf13/afero v1.1.2 h1:m8/z1t7/fwjysjQRYbP0RD+bUIF/8tJwPdEZsI83ACI= 165 | github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= 166 | github.com/spf13/cast v1.3.0 h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8= 167 | github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= 168 | github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk= 169 | github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= 170 | github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 171 | github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= 172 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 173 | github.com/spf13/viper v1.7.1 h1:pM5oEahlgWv/WnHXpgbKz7iLIxRf65tye2Ci+XFK5sk= 174 | github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= 175 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 176 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 177 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 178 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 179 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 180 | github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= 181 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 182 | github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= 183 | github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= 184 | github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= 185 | github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= 186 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 187 | go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= 188 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 189 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 190 | go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= 191 | go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= 192 | go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= 193 | go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= 194 | go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= 195 | go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= 196 | go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= 197 | go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= 198 | go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= 199 | go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= 200 | go.uber.org/zap v1.16.0 h1:uFRZXykJGK9lLY4HtgSw44DnIcAM+kRBP7x5m+NpAOM= 201 | go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= 202 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 203 | golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 204 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 205 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 206 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 207 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 208 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 209 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 210 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 211 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 212 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 213 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 214 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 215 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 216 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 217 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 218 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 219 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 220 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 221 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 222 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 223 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k= 224 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 225 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 226 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 227 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 228 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 229 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 230 | golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= 231 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 232 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 233 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 234 | golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 235 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 236 | golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 237 | golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 238 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 239 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 240 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 241 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 242 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 243 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 244 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 245 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 246 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 247 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 248 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 249 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 250 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 251 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 252 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 253 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 254 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 255 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 256 | golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 257 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 258 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 259 | golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 260 | golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 261 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 262 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 263 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 264 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 265 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 266 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 267 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 268 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 269 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 270 | golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 271 | golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005 h1:pDMpM2zh2MT0kHy037cKlSby2nEhD50SYqwQk76Nm40= 272 | golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 273 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 274 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 275 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 276 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 277 | golang.org/x/text v0.3.5 h1:i6eZZ+zk0SOf0xgBpEpPD18qWcJda6q1sxt3S0kzyUQ= 278 | golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 279 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 280 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 281 | golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 282 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 283 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 284 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 285 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 286 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 287 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 288 | golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 289 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 290 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 291 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 292 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 293 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 294 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 295 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 296 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 297 | golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 298 | golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 299 | golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 300 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 301 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 302 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 303 | golang.org/x/tools v0.1.0 h1:po9/4sTYwZU9lPhi1tOrb4hCv3qrhiQ77LZfGa2OjwY= 304 | golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= 305 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 306 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 307 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 308 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= 309 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 310 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 311 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 312 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 313 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 314 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 315 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 316 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 317 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 318 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 319 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 320 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 321 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 322 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 323 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 324 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 325 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 326 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 327 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 328 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 329 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 330 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 331 | gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc= 332 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 333 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 334 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 335 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= 336 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 337 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 338 | gopkg.in/ini.v1 v1.51.0 h1:AQvPpx3LzTDM0AjnIRlVFwFFGC+npRopjZxLJj6gdno= 339 | gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= 340 | gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= 341 | gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= 342 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 343 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 344 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 345 | gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= 346 | gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 347 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 348 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= 349 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 350 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 351 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 352 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 353 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 354 | honnef.co/go/tools v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8= 355 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 356 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 357 | --------------------------------------------------------------------------------