mirror of
https://github.com/will-moss/isaiah.git
synced 2024-08-22 23:27:15 +03:00
19 lines
341 B
Go
19 lines
341 B
Go
package ui
|
|
|
|
import _json "will-moss/isaiah/server/_internal/json"
|
|
|
|
// Represent a command sent by the web browser
|
|
type Command struct {
|
|
Action string
|
|
Args map[string]interface{}
|
|
Agent string
|
|
Host string
|
|
Initiator string
|
|
Sequence int32
|
|
}
|
|
|
|
func (c Command) ToBytes() []byte {
|
|
v := _json.Marshal(c)
|
|
return []byte(v)
|
|
}
|