Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client owns the agent side of the server-initiated sandbox control socket. It intentionally only knows about generic named changes and byte streams; feature-specific protocols are layered on top by callers.
func (*Client) OpenStream ¶
OpenStream opens a named byte stream. The channel name should identify the feature and request, for example "git:123".
func (*Client) PostChange ¶
PostChange publishes a named control change with an arbitrary JSON payload.
func (*Client) ServeWebSocket ¶
func (c *Client) ServeWebSocket(w http.ResponseWriter, r *http.Request)
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
Stream is a named byte stream over the control socket.
func (*Stream) CloseWrite ¶
Click to show internal directories.
Click to hide internal directories.