Files
isaiah/app/server/ui/command.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)
}