Documentation ¶ Index ¶ type Client func (client *Client) Connect() type Flag func (f Flag) String() string type Server func (s *Server) Serve() (err error) func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) type Tunnel func (t *Tunnel) ListenAndServe() (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { Server string Tunnel Tunnel ForwardPort uint16 } func (*Client) Connect ¶ func (client *Client) Connect() type Flag ¶ added in v0.4.1 type Flag uint8 const ( FlagHello Flag = iota + 1 FlagProxy FlagReady FlagError ) func (Flag) String ¶ added in v0.4.1 func (f Flag) String() string type Server ¶ type Server struct { Port uint16 // tunnel service port // contains filtered or unexported fields } func (*Server) Serve ¶ func (s *Server) Serve() (err error) func (*Server) ServeHTTP ¶ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) type Tunnel ¶ type Tunnel struct { Name string Port uint16 MaxProxyLifetime uint32 // contains filtered or unexported fields } func (*Tunnel) ListenAndServe ¶ func (t *Tunnel) ListenAndServe() (err error) Source Files ¶ View all Source files client.go flag.go message.go server.go tunnel.go Directories ¶ Show internal Expand all Path Synopsis cmd client server Click to show internal directories. Click to hide internal directories.