Skip to content

Commit

Permalink
move to go-http-tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatczuk committed Feb 15, 2017
1 parent efe21af commit dc15ba0
Show file tree
Hide file tree
Showing 22 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Tunnel [![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/mmatczuk/tunnel) [![Go Report Card](https://goreportcard.com/badge/github.com/mmatczuk/tunnel)](https://goreportcard.com/report/github.com/mmatczuk/tunnel) [![Build Status](http://img.shields.io/travis/mmatczuk/tunnel.svg?style=flat-square)](https://travis-ci.org/mmatczuk/tunnel)
# Tunnel [![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/mmatczuk/go-http-tunnel) [![Go Report Card](https://goreportcard.com/badge/github.com/mmatczuk/go-http-tunnel)](https://goreportcard.com/report/github.com/mmatczuk/go-http-tunnel) [![Build Status](http://img.shields.io/travis/mmatczuk/go-http-tunnel.svg?style=flat-square)](https://travis-ci.org/mmatczuk/go-http-tunnel)

Tunnel is fast and secure server/client package that enables proxying public connections to your local machine over a tunnel connection from the local machine to the public server. In other words you can share your localhost even if it doesn't have a public IP or if it's not reachable from outside.

Expand Down
2 changes: 1 addition & 1 deletion benchmark/report/README.md → benchmark/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Benchmark report

The benchmark compares [tunnel](https://github.com/mmatczuk/tunnel) to [koding tunnel](https://github.com/koding/tunnel) on serving 184 midsized files that were gathered by saving `amazon.com` for offline view. The data set consists of images and text data (js, css, html). On start client loads the files into memory and act as a file server.
The benchmark compares [tunnel](https://github.com/mmatczuk/go-http-tunnel) to [koding tunnel](https://github.com/koding/tunnel) on serving 184 midsized files that were gathered by saving `amazon.com` for offline view. The data set consists of images and text data (js, css, html). On start client loads the files into memory and act as a file server.

The diagrams were rendered using [hdrhistogram](http://hdrhistogram.github.io/HdrHistogram/plotFiles.html) and the input files were generated with help of [github.com/codahale/hdrhistogram](https://github.com/codahale/hdrhistogram) library. The vegeta raw results were corrected for stalls using [hdr correction method](https://godoc.org/github.com/codahale/hdrhistogram#Histogram.RecordCorrectedValue).

Expand Down
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"golang.org/x/net/http2"

"github.com/mmatczuk/tunnel/log"
"github.com/mmatczuk/tunnel/proto"
"github.com/mmatczuk/go-http-tunnel/log"
"github.com/mmatczuk/go-http-tunnel/proto"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"time"

"github.com/golang/mock/gomock"
"github.com/mmatczuk/tunnel/mock"
"github.com/mmatczuk/tunnel/proto"
"github.com/mmatczuk/go-http-tunnel/mock"
"github.com/mmatczuk/go-http-tunnel/proto"
)

func TestClient_Dial(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

kitlog "github.com/go-kit/kit/log"
"github.com/mmatczuk/tunnel/log"
"github.com/mmatczuk/go-http-tunnel/log"
)

// NewLogger returns logfmt based logger, printing messages up to log level
Expand Down
2 changes: 1 addition & 1 deletion cmd/tunnel/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"gopkg.in/yaml.v2"

"github.com/mmatczuk/tunnel/proto"
"github.com/mmatczuk/go-http-tunnel/proto"
)

type BackoffConfig struct {
Expand Down
8 changes: 4 additions & 4 deletions cmd/tunnel/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (

"github.com/cenkalti/backoff"
"github.com/google/gops/agent"
"github.com/mmatczuk/tunnel"
"github.com/mmatczuk/tunnel/cmd/cmd"
"github.com/mmatczuk/tunnel/log"
"github.com/mmatczuk/tunnel/proto"
"github.com/mmatczuk/go-http-tunnel"
"github.com/mmatczuk/go-http-tunnel/cmd/cmd"
"github.com/mmatczuk/go-http-tunnel/log"
"github.com/mmatczuk/go-http-tunnel/proto"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/tunneld/tunneld.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"strings"

"github.com/google/gops/agent"
"github.com/mmatczuk/tunnel"
"github.com/mmatczuk/tunnel/cmd/cmd"
"github.com/mmatczuk/tunnel/id"
"github.com/mmatczuk/go-http-tunnel"
"github.com/mmatczuk/go-http-tunnel/cmd/cmd"
"github.com/mmatczuk/go-http-tunnel/id"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions httpproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"net/url"
"path"

"github.com/mmatczuk/tunnel/log"
"github.com/mmatczuk/tunnel/proto"
"github.com/mmatczuk/go-http-tunnel/log"
"github.com/mmatczuk/go-http-tunnel/proto"
)

// HTTPProxy forwards HTTP traffic.
Expand Down
8 changes: 4 additions & 4 deletions integrationtest/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"testing"
"time"

"github.com/mmatczuk/tunnel"
"github.com/mmatczuk/tunnel/id"
"github.com/mmatczuk/tunnel/log"
"github.com/mmatczuk/tunnel/proto"
"github.com/mmatczuk/go-http-tunnel"
"github.com/mmatczuk/go-http-tunnel/id"
"github.com/mmatczuk/go-http-tunnel/log"
"github.com/mmatczuk/go-http-tunnel/proto"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion log/filterlogger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/golang/mock/gomock"
"github.com/mmatczuk/tunnel/mock"
"github.com/mmatczuk/go-http-tunnel/mock"
)

func TestFilterLogger_Log(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion log/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/golang/mock/gomock"
"github.com/mmatczuk/tunnel/mock"
"github.com/mmatczuk/go-http-tunnel/mock"
)

func TestContext_Log(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion mock/backoff.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/mmatczuk/tunnel (interfaces: Backoff)
// Source: github.com/mmatczuk/go-http-tunnel (interfaces: Backoff)

package mock

Expand Down
2 changes: 1 addition & 1 deletion mock/logger.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/mmatczuk/tunnel/log (interfaces: Logger)
// Source: github.com/mmatczuk/go-http-tunnel/log (interfaces: Logger)

package mock

Expand Down
2 changes: 1 addition & 1 deletion pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"golang.org/x/net/http2"

"github.com/mmatczuk/tunnel/id"
"github.com/mmatczuk/go-http-tunnel/id"
)

type onDisconnectListener func(identifier id.ID)
Expand Down
2 changes: 1 addition & 1 deletion proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tunnel
import (
"io"

"github.com/mmatczuk/tunnel/proto"
"github.com/mmatczuk/go-http-tunnel/proto"
)

// ProxyFunc is responsible for forwarding a remote connection to local server
Expand Down
4 changes: 2 additions & 2 deletions registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net"
"sync"

"github.com/mmatczuk/tunnel/id"
"github.com/mmatczuk/tunnel/log"
"github.com/mmatczuk/go-http-tunnel/id"
"github.com/mmatczuk/go-http-tunnel/log"
)

// RegistryItem holds information about hosts and listeners associated with a
Expand Down
6 changes: 3 additions & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (

"golang.org/x/net/http2"

"github.com/mmatczuk/tunnel/id"
"github.com/mmatczuk/tunnel/log"
"github.com/mmatczuk/tunnel/proto"
"github.com/mmatczuk/go-http-tunnel/id"
"github.com/mmatczuk/go-http-tunnel/log"
"github.com/mmatczuk/go-http-tunnel/proto"
)

// ServerConfig defines configuration for the Server.
Expand Down
4 changes: 2 additions & 2 deletions tcpproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"io"
"net"

"github.com/mmatczuk/tunnel/log"
"github.com/mmatczuk/tunnel/proto"
"github.com/mmatczuk/go-http-tunnel/log"
"github.com/mmatczuk/go-http-tunnel/proto"
)

// TCPProxy forwards TCP streams.
Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io"
"net/http"

"github.com/mmatczuk/tunnel/log"
"github.com/mmatczuk/go-http-tunnel/log"
)

type closeWriter interface {
Expand Down

0 comments on commit dc15ba0

Please sign in to comment.