example/

directory
v0.0.0-...-1118e41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2017 License: GPL-3.0

README

setup:

go get -v -u github.com/Sirupsen/logrus
go get -v -u github.com/jmoiron/jsonq

go get -v -u github.com/ooclab/es
cd $GOPATH/src/github.com/ooclab/es/example

build:

go build -v server.go
go build -v client.go

run server:

./server :3000

run client example 1 (maping CLIENT:127.0.0.1:8080 to SERVER:*:18080):

./client SERVER_IP:3000 r:127.0.0.1:8080::18080

run client example 2 (maping SERVER:127.0.0.1:1080 to CLIENT:127.0.0.1:8000):

./client SERVER_IP:3000 f:127.0.0.1:8000:127.0.0.1:1080

Directories

Path Synopsis
tcp
udp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL