{"modulePath":"github.com/p3bot/webctl","version":"v0.2.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executor\n\n## Types\n\n```go\ntype DirectExecutor struct {\n\t// contains filtered or unexported fields\n}\n```\nDirectExecutor executes commands by calling the handler directly. Used by the REPL to avoid IPC round-trip.\n\n```go\nfunc NewDirectExecutor(handler ipc.Handler) *DirectExecutor\n```\nNewDirectExecutor creates a new direct executor with the given handler.\n\n```go\nfunc (e *DirectExecutor) Close() error\n```\nClose is a no-op for direct executor.\n\n```go\nfunc (e *DirectExecutor) Execute(req ipc.Request) (ipc.Response, error)\n```\nExecute calls the handler directly and returns the response.\n\n```go\ntype Executor interface {\n\tExecute(req ipc.Request) (ipc.Response, error)\n\tClose() error\n}\n```\nExecutor executes commands and returns responses. Implementations handle the transport mechanism (IPC, TCP, direct call).\n\n```go\ntype IPCExecutor struct {\n\t// contains filtered or unexported fields\n}\n```\nIPCExecutor executes commands via Unix socket IPC.\n\n```go\nfunc NewIPCExecutor() (*IPCExecutor, error)\n```\nNewIPCExecutor creates a new IPC executor connected to the daemon.\n\n```go\nfunc NewIPCExecutorPath(socketPath string) (*IPCExecutor, error)\n```\nNewIPCExecutorPath creates a new IPC executor connected to a specific socket path.\n\n```go\nfunc NewIPCExecutorWithDebug(debug bool) (*IPCExecutor, error)\n```\nNewIPCExecutorWithDebug creates a new IPC executor with debug flag.\n\n```go\nfunc (e *IPCExecutor) Close() error\n```\nClose closes the IPC connection.\n\n```go\nfunc (e *IPCExecutor) Execute(req ipc.Request) (ipc.Response, error)\n```\nExecute sends a request via IPC and returns the response. Automatically sets the Debug flag on the request based on executor config.\n\n","path":"github.com/p3bot/webctl/internal/executor","name":"executor","synopsis":"","isRedistributable":true}
