Documentation ¶
Index ¶
- Variables
- func AddCloseHandler(conn *websocket.Conn)
- func GetHeadersFor(cfg *rest.Config) (http.Header, error)
- type Connection
- type Dialer
- func (d *Dialer) DialContext(ctx context.Context, url string, headers http.Header) (*Connection, error)
- func (d *Dialer) DialMultiplexed(ctx context.Context, url string, headers http.Header) (*Connection, error)
- func (d *Dialer) DialWebsocket(ctx context.Context, url string, headers http.Header) (*websocket.Conn, *http.Response, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddCloseHandler ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(conn *websocket.Conn, needsInit bool) *Connection
func (*Connection) Close ¶
func (c *Connection) Close() (err error)
type Dialer ¶
type Dialer struct {
// contains filtered or unexported fields
}
func (*Dialer) DialContext ¶
func (*Dialer) DialMultiplexed ¶
Click to show internal directories.
Click to hide internal directories.