Documentation ¶
Index ¶
Constants ¶
View Source
const ( CONNECTING = iota IDLE RUNNING )
Status of a Connection
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Config *Config // contains filtered or unexported fields }
Client connects to one or more Server using HTTP websockets. The Server can then send HTTP requests to execute.
type Config ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection handle a single websocket (HTTP/TCP) connection to an Server
func NewConnection ¶
func NewConnection(pool *Pool) *Connection
NewConnection create a Connection object
func (*Connection) Close ¶
func (connection *Connection) Close()
Close close the ws/tcp connection and remove it from the pool
func (*Connection) Connect ¶
func (connection *Connection) Connect(ctx context.Context) (err error)
Connect to the IsolatorServer using a HTTP websocket
func (*Connection) IsInitialConnection ¶
func (c *Connection) IsInitialConnection() bool
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool manage a pool of connection to a remote Server
type PoolSize ¶
type PoolSize struct {
// contains filtered or unexported fields
}
PoolSize represent the number of open connections per status
type ProxyTunnels ¶
type ProxyTunnels struct {
Tunnels []TunnelConfig
}
type TunnelConfig ¶
Click to show internal directories.
Click to hide internal directories.