Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LaunchRequest ¶
type LaunchRequest struct {
Username string `json:"username"`
Password string `json:"password"`
AuthServer string `json:"auth_server"`
CharacterName string `json:"character_name"`
RealmIndex int `json:"realm_index"`
Race uint8 `json:"race"`
Class uint8 `json:"class"`
Gender uint8 `json:"gender"`
Mode string `json:"mode"`
DungeonName string `json:"dungeon_name"`
DataDir string `json:"data_dir"`
PathfindingAddr string `json:"pathfinding_addr"`
LuaScript string `json:"lua_script"`
LuaCode string `json:"lua_code"`
AIBundle scenario.AIBundle `json:"ai_bundle"`
BotID string `json:"bot_id"`
DeleteExistingChars bool `json:"delete_existing_chars"`
DisableTargetCache bool `json:"disable_target_cache"`
LogDecisionsToChat bool `json:"log_decisions_to_chat"`
// Validation tooling (propagated from orchestrator/scenario; default false = no perf cost)
ValidationMode bool `json:"validation_mode"`
ValidationLogPath string `json:"validation_log"`
EnablePacketTrace bool `json:"enable_packet_trace"`
EnableDetailedAuras bool `json:"enable_detailed_auras"`
}
LaunchRequest is the request body for launching a new bot (extended for AI/Scenario support).
type LaunchResponse ¶
LaunchResponse is the response body for a launch request.
type LuaUpdateRequest ¶
LuaUpdateRequest is the request body for updating Lua code on a running bot.
type NodeLaunchRequest ¶
type NodeLaunchRequest struct {
BotID string `json:"bot_id"`
Username string `json:"username"`
Password string `json:"password"`
AuthServer string `json:"auth_server"`
CharacterName string `json:"character_name"`
Race uint8 `json:"race"`
Class uint8 `json:"class"`
Mode string `json:"mode"`
DungeonName string `json:"dungeon_name"`
DataDir string `json:"data_dir"`
PathfindingAddr string `json:"pathfinding_addr"`
LuaScript string `json:"lua_script"`
LuaCode string `json:"lua_code"`
AIBundle scenario.AIBundle `json:"ai_bundle"`
DeleteExistingChars bool `json:"delete_existing_chars"`
LogDecisionsToChat bool `json:"log_decisions_to_chat"`
DisableTargetCache bool `json:"disable_target_cache"`
// Validation tooling (off by default)
ValidationMode bool `json:"validation_mode"`
ValidationLogPath string `json:"validation_log"`
EnablePacketTrace bool `json:"enable_packet_trace"`
EnableDetailedAuras bool `json:"enable_detailed_auras"`
}
NodeLaunchRequest mirrors the orchestrator version for wire compatibility in the node/server path.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the HTTP API server for managing bot clients (node mode).
func NewServerWithDefaults ¶
NewServerWithDefaults creates a node API server with node-local navigation defaults. Docker workers use this to keep container paths such as /data even when the orchestrator runs on a host with a different filesystem layout.
func (*Server) LaunchFromOrchestrator ¶
func (s *Server) LaunchFromOrchestrator(req NodeLaunchRequest) string
LaunchFromOrchestrator starts a bot from an orchestrator request.