client

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool

Debug enables verbose HTTP request/response logging to stderr.

Functions

This section is empty.

Types

type BatchRequest

type BatchRequest struct {
	Commands []map[string]interface{} `json:"commands"`
}

type CommandRequest

type CommandRequest struct {
	Command string      `json:"command"`
	Params  interface{} `json:"params"`
}

type CommandResponse

type CommandResponse struct {
	Success bool            `json:"success"`
	Message string          `json:"message"`
	Data    json.RawMessage `json:"data,omitempty"`
}

func Send

func Send(inst *Instance, command string, params interface{}, timeoutMs int) (*CommandResponse, error)

func SendBatch

func SendBatch(inst *Instance, commands []map[string]interface{}, timeoutMs int) (*CommandResponse, error)

type Instance

type Instance struct {
	ProjectPath  string `json:"projectPath"`
	Port         int    `json:"port"`
	PID          int    `json:"pid"`
	UnityVersion string `json:"unityVersion,omitempty"`
	RegisteredAt string `json:"registeredAt,omitempty"`
}

func DiscoverInstance

func DiscoverInstance(project string, port int) (*Instance, error)

Jump to

Keyboard shortcuts

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