Documentation
¶
Overview ¶
Package agent implements read-only language-tooling requests against gopls.
Index ¶
Constants ¶
View Source
const MaxBatchOperations = 16
MaxBatchOperations bounds prepared source overlays retained by one session.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct {
Operation string `json:"operation"`
Workspace string `json:"workspace"`
File string `json:"file"`
Position Position `json:"position"`
Server ServerInfo `json:"server"`
Payload json.RawMessage `json:"result"`
Timing Timing `json:"timing"`
}
type ServerInfo ¶
type Timing ¶
type Timing struct {
InitializeNanoseconds int64 `json:"initialize_ns"`
RequestNanoseconds int64 `json:"request_ns"`
}
Timing separates protocol request latency from server startup. Request time includes any gopls package loading caused by that request; it is not CPU time. Process shutdown and document preparation belong to the caller's wall time.
Click to show internal directories.
Click to hide internal directories.