Documentation
¶
Overview ¶
Package goplsclient provides an experimental explicitly configured local gopls session. It supplies observations only; snapshot authority belongs to callers.
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Change(ctx context.Context, uri string) error
- func (c *Client) CleanupProven() bool
- func (c *Client) CloseDocument(ctx context.Context, uri string) error
- func (c *Client) Definition(ctx context.Context, uri string, p Position) ([]Location, error)
- func (c *Client) Done() <-chan struct{}
- func (c *Client) Open(ctx context.Context, uri string) error
- func (c *Client) Profile() Profile
- func (c *Client) Shutdown(ctx context.Context) error
- type Config
- type Location
- type Position
- type Profile
- type Range
- type Snapshot
Constants ¶
View Source
const MaxDocumentBytes = 256 << 10
View Source
const MaxDocuments = 32
View Source
const MaxMessageBytes = 1 << 20
View Source
const RequestLimit = 20 * time.Second
View Source
const SessionLimit = 10 * time.Minute
Variables ¶
View Source
var ErrProtocol = errors.New("gopls protocol invalid")
View Source
var ErrSession = errors.New("gopls session unavailable")
View Source
var ErrSnapshot = errors.New("snapshot invalid or stale")
View Source
var ErrUnsupported = errors.New("gopls profile unsupported")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CleanupProven ¶
CleanupProven is meaningful after Done closes; it does not claim sandbox containment.
func (*Client) CloseDocument ¶
func (*Client) Definition ¶
Click to show internal directories.
Click to hide internal directories.