Documentation
¶
Index ¶
Constants ¶
View Source
const ( Delimiter = "<IDS|MSG>" ProtocolVersion = "5.0" )
View Source
const (
KernelVersion = "0.1.0"
)
Variables ¶
This section is empty.
Functions ¶
func VerifySignature ¶
VerifySignature checks the HMAC signature of incoming message frames.
Types ¶
type ConnectionInfo ¶
type ConnectionInfo struct {
Transport string `json:"transport"`
IP string `json:"ip"`
ShellPort int `json:"shell_port"`
ControlPort int `json:"control_port"`
IOPubPort int `json:"iopub_port"`
StdinPort int `json:"stdin_port"`
HBPort int `json:"hb_port"`
Key string `json:"key"`
SignatureScheme string `json:"signature_scheme"`
}
ConnectionInfo holds the parsed Jupyter connection file data.
func (*ConnectionInfo) Endpoint ¶
func (c *ConnectionInfo) Endpoint(port int) string
Endpoint returns the ZMQ endpoint string for a given port.
type Header ¶
type Header struct {
MsgID string `json:"msg_id"`
Session string `json:"session"`
Username string `json:"username"`
Date string `json:"date"`
MsgType string `json:"msg_type"`
Version string `json:"version"`
}
Header represents a Jupyter message header.
type Kernel ¶
type Kernel struct {
// contains filtered or unexported fields
}
Kernel manages the Jupyter kernel lifecycle and ZMQ sockets.
type Message ¶
type Message struct {
Identities [][]byte
Header Header
ParentHeader Header
Metadata map[string]any
Content map[string]any
}
Message represents a complete Jupyter wire protocol message.
func Deserialize ¶
Deserialize parses wire format frames into a Message.
func NewMessage ¶
NewMessage creates a new message as a reply to the given parent.
Click to show internal directories.
Click to hide internal directories.