package
1.6.0-alpha.0
Repository: https://github.com/andrewsykim/kubernetes.git
Documentation: pkg.go.dev
# Functions
IgnoreReceives reads from a WebSocket until it is closed, then returns.
IsWebSocketRequest returns true if the incoming request contains connection upgrade headers for WebSockets.
NewConn creates a WebSocket connection that supports a set of channels.
NewDefaultChannelProtocols returns a channel protocol map with the subprotocols "", "channel.k8s.io", "base64.channel.k8s.io" and the given channels.
NewDefaultReaderProtocols returns a stream protocol map with the subprotocols "", "channel.k8s.io", "base64.channel.k8s.io".
NewReader creates a WebSocket pipe that will copy the contents of r to a provided WebSocket connection.
# Constants
The Websocket subprotocol "base64.channel.k8s.io" base64 encodes each message with a character indicating the channel number (zero indexed) the message was sent on.
The Websocket subprotocol "channel.k8s.io" prepends each binary message with a byte indicating the channel number (zero indexed) the message was sent on.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ChannelProtocolConfig describes a websocket subprotocol with channels.
Conn supports sending multiple binary channels over a websocket connection.
Reader supports returning an arbitrary byte stream over a websocket channel.
ReaderProtocolConfig describes a websocket subprotocol with one stream.
# Type aliases
No description provided by the author