Documentation
¶
Overview ¶
Package packagebridgesdk is the narrow client surface available to a package-host executable. It communicates only over its inherited bridge FD.
Index ¶
Constants ¶
View Source
const BridgeFDEnvironment = "ANIX_CONTROL_PACKAGE_BRIDGE_FD"
Variables ¶
View Source
var ( ErrCapabilityRejected = errors.New("package bridge capability rejected") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func DialFile ¶
DialFile consumes a duplicate of file and leaves no filesystem-addressable bridge endpoint for a package to discover or replace.
func (*Client) OpenWebSocket ¶
type WebSocketClose ¶
type WebSocketFrame ¶
type WebSocketFrame struct {
Data []byte
Close *WebSocketClose
}
WebSocketFrame is exchanged after the private bridge opening frame. A nil Close denotes a data frame, including an empty payload.
type WebSocketStream ¶
type WebSocketStream interface {
Recv() (WebSocketFrame, error)
Send(WebSocketFrame) error
CloseSend() error
}
Click to show internal directories.
Click to hide internal directories.