Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // ServerAddr 服务端的地址,必填,如 192.168.1.10:8080 ServerAddr string // LocalAddr 期望对外发布的本地服务的地址,必填,如 127.0.0.1:8090 LocalAddr string // Worker Worker int // ConnectTimeout 网络连接超时时间,可选 ConnectTimeout time.Duration // Token 加密密码,可选 Token string // contains filtered or unexported fields }
type Server ¶
type Tunneler ¶
type Tunneler struct { // RemoteRW 和远端 Tunneler client 或者 server 的连接 RemoteRW func() io.ReadWriteCloser // LocalRW 和本地其他 server(待穿透的实际服务),如 nginx 等的连接 LocalRW func() io.ReadWriteCloser Worker int Token string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.