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 ¶
type Connection struct {
// contains filtered or unexported fields
}
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
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.