mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
Move the command types into a separate package
This commit is contained in:
18
tools/utils/types.go
Normal file
18
tools/utils/types.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package utils
|
||||
|
||||
type RemoteControlCmd struct {
|
||||
Cmd string `json:"cmd"`
|
||||
Version [3]int `json:"version"`
|
||||
NoResponse bool `json:"no_response,omitifempty"`
|
||||
Payload map[string]interface{} `json:"payload,omitifempty"`
|
||||
Timestamp int64 `json:"timestamp,omitifempty"`
|
||||
Password string `json:"password,omitifempty"`
|
||||
}
|
||||
|
||||
type EncryptedRemoteControlCmd struct {
|
||||
Version [3]int `json:"version"`
|
||||
IV string `json:"iv"`
|
||||
Tag string `json:"tag"`
|
||||
Pubkey string `json:"pubkey"`
|
||||
Encrypted string `json:"encrypted"`
|
||||
}
|
||||
Reference in New Issue
Block a user