agentlink

package
v0.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

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 ConnectResponse struct {
	Success bool   `msgpack:"s"`
	Server  string `msgpack:"sv"`
	Token   string `msgpack:"t"`
}

type SpaceNoteRequest

type SpaceNoteRequest struct {
	Note string `json:"note" msgpack:"note"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL