Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendWithResponseMsg ¶
func SendWithResponseMsg(commandType CommandType, payload interface{}, response interface{}) error
func StartCommandSocket ¶
func StartCommandSocket(agentClientObj *agent_client.AgentClient)
func StopCommandSocket ¶
func StopCommandSocket()
Types ¶
type CommandMsg ¶
type CommandMsg struct {
Command CommandType `msgpack:"c"`
Payload []byte `msgpack:"p"`
}
func (*CommandMsg) Unmarshal ¶
func (c *CommandMsg) Unmarshal(v interface{}) error
type CommandType ¶
type CommandType int
const ( CommandNil CommandType = iota CommandConnect CommandSpaceNote CommandSpaceStop CommandSpaceRestart )
type ConnectResponse ¶
type SpaceNoteRequest ¶
type SpaceNoteRequest struct {
Note string `json:"note" msgpack:"note"`
}
Click to show internal directories.
Click to hide internal directories.