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 {
// 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 Connection ¶
Connection handle a single websocket (HTTP/TCP) connection to an Server
func NewConnection ¶
NewConnection create a Connection object
func (*Connection) Close ¶
func (c *Connection) Close()
Close close the ws/tcp connection and remove it from the pool
func (*Connection) Connect ¶
func (c *Connection) Connect(ctx context.Context) (err error)
Connect to the IsolatorServer using a HTTP websocket
func (*Connection) WriteMessage ¶ added in v0.14.0
func (c *Connection) WriteMessage(messageType int, data []byte) (err error)
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool manage a pool of connection to a remote Server
func NewPool ¶
func NewPool(client *Client, target string, secretKey string, api *api.Api, stream *stream.Stream, adaptors *adaptors.Adaptors, jwtManager jwt_manager.JwtManager) *Pool
NewPool creates a new Pool
Click to show internal directories.
Click to hide internal directories.