Documentation
¶
Overview ¶
Package socket provides a Unix socket server for CLI client queries against the running canopyls LSP server's enriched scope graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SocketPath ¶
SocketPath computes the socket path for a workspace root.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client connects to a running canopyls socket server.
type Handler ¶
type Handler func(params json.RawMessage) (any, error)
Handler processes a socket request.
type Request ¶
type Request struct {
Method string `json:"method"`
Params json.RawMessage `json:"params,omitempty"`
}
Request is a CLI client query.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server listens on a Unix socket and dispatches queries to handlers.
Click to show internal directories.
Click to hide internal directories.