Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectExecutor ¶
type DirectExecutor struct {
// contains filtered or unexported fields
}
DirectExecutor executes commands by calling the handler directly. Used by the REPL to avoid IPC round-trip.
func NewDirectExecutor ¶
func NewDirectExecutor(handler ipc.Handler) *DirectExecutor
NewDirectExecutor creates a new direct executor with the given handler.
func (*DirectExecutor) Close ¶
func (e *DirectExecutor) Close() error
Close is a no-op for direct executor.
type Executor ¶
Executor executes commands and returns responses. Implementations handle the transport mechanism (IPC, TCP, direct call).
type IPCExecutor ¶
type IPCExecutor struct {
// contains filtered or unexported fields
}
IPCExecutor executes commands via Unix socket IPC.
func NewIPCExecutor ¶
func NewIPCExecutor() (*IPCExecutor, error)
NewIPCExecutor creates a new IPC executor connected to the daemon.
func NewIPCExecutorPath ¶
func NewIPCExecutorPath(socketPath string) (*IPCExecutor, error)
NewIPCExecutorPath creates a new IPC executor connected to a specific socket path.
func NewIPCExecutorWithDebug ¶
func NewIPCExecutorWithDebug(debug bool) (*IPCExecutor, error)
NewIPCExecutorWithDebug creates a new IPC executor with debug flag.
Click to show internal directories.
Click to hide internal directories.