add local daemon socket protocol
This commit is contained in:
@@ -32,6 +32,9 @@ const (
|
||||
FramePaletteCommand FrameType = "palette_command"
|
||||
FrameTrustResponse FrameType = "trust_response"
|
||||
FrameResize FrameType = "resize"
|
||||
FrameList FrameType = "list"
|
||||
FrameStop FrameType = "stop"
|
||||
FrameError FrameType = "error"
|
||||
)
|
||||
|
||||
// Frame is the transport envelope. Payload is deliberately raw JSON so
|
||||
@@ -72,9 +75,10 @@ type Hello struct {
|
||||
}
|
||||
|
||||
type Attach struct {
|
||||
Token string `json:"token,omitempty"`
|
||||
ProjectKey string `json:"project_key,omitempty"`
|
||||
TermSize Size `json:"term_size"`
|
||||
Token string `json:"token,omitempty"`
|
||||
ProjectKey string `json:"project_key,omitempty"`
|
||||
ProjectPath string `json:"project_path,omitempty"`
|
||||
TermSize Size `json:"term_size"`
|
||||
}
|
||||
|
||||
type Detach struct {
|
||||
@@ -162,3 +166,7 @@ type TrustResponse struct {
|
||||
type Resize struct {
|
||||
Size Size `json:"size"`
|
||||
}
|
||||
|
||||
type Error struct {
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user