Documentation ¶
Overview ¶
Package remoton tunnel handlers
Index ¶
- func CompressConnection(conn net.Conn) net.Conn
- func GenerateAuthUser() string
- func NetCopy(dst net.Conn, src net.Conn, deadline time.Duration) (written int64, err error)
- func NewSessionManager() *sessionManager
- func RegisterTunnelType(typ string, f func(net.Conn) http.Handler)
- type Client
- type ErrHTTP
- type Server
- type SessionClient
- type SessionListen
- type SessionListenTCP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAuthUser ¶
func GenerateAuthUser() string
func NewSessionManager ¶
func NewSessionManager() *sessionManager
Types ¶
type Client ¶
Client allow creation of sessions
func (*Client) NewSession ¶
func (c *Client) NewSession(_url string, authToken string) (*SessionClient, error)
NewSession create a session on server
type Server ¶
type Server struct { *httprouter.Router // contains filtered or unexported fields }
Server export API for handle connections this follow http.Handler can be embedded in any web app
type SessionClient ¶
type SessionClient struct { *Client ID string AuthToken string //WSURL web socket url by default it try //to guess from baseUrl WSURL string APIURL string // contains filtered or unexported fields }
SessionClient it's a session where we can create Services a services it's a connection -net.Conn-
func (*SessionClient) Destroy ¶
func (c *SessionClient) Destroy()
Destroy the current session this not close active connections
func (*SessionClient) Dial ¶
func (c *SessionClient) Dial(service string) (net.Conn, error)
Dial create a new *service* -net.Conn- Websocket
func (*SessionClient) DialTCP ¶
func (c *SessionClient) DialTCP(service string) (net.Conn, error)
Dial create a new *service* -net.Conn- TCP
type SessionListen ¶
type SessionListen struct { *SessionClient // contains filtered or unexported fields }
SessionListen tunnel type websocket by default
func (*SessionListen) Accept ¶
func (c *SessionListen) Accept() (net.Conn, error)
Accept implements the net.Accept for Websocket
func (*SessionListen) AcceptTCP ¶
func (c *SessionListen) AcceptTCP() (net.Conn, error)
Accept implements the net.Accept for TCP
func (*SessionListen) Addr ¶
func (c *SessionListen) Addr() net.Addr
func (*SessionListen) Close ¶
func (c *SessionListen) Close() error
type SessionListenTCP ¶
type SessionListenTCP struct { *SessionClient // contains filtered or unexported fields }
SessionListenTCP tunnel type TCP
func (*SessionListenTCP) Addr ¶
func (c *SessionListenTCP) Addr() net.Addr
func (*SessionListenTCP) Close ¶
func (c *SessionListenTCP) Close() error
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
remoton-client-desktop
+build linux,windows
|
+build linux,windows |
remoton-support-desktop
Package remoton-client-desktop Shared desktop to support user.
|
Package remoton-client-desktop Shared desktop to support user. |
p2p/nat
Package nat provides access to common network port mapping protocols.
|
Package nat provides access to common network port mapping protocols. |
Click to show internal directories.
Click to hide internal directories.