Documentation ¶
Overview ¶
Package cache implements the caching layer for gopls.
Index ¶
- Constants
- type Cache
- type DebugSession
- type Session
- func (s *Session) Cache() source.Cache
- func (s *Session) DidModifyFiles(ctx context.Context, changes []source.FileModification) ([]source.Snapshot, error)
- func (s *Session) GetFile(uri span.URI) source.FileHandle
- func (s *Session) NewView(ctx context.Context, name string, folder span.URI, options source.Options) (source.View, source.Snapshot, error)
- func (s *Session) Options() source.Options
- func (s *Session) SetOptions(options source.Options)
- func (s *Session) Shutdown(ctx context.Context)
- func (s *Session) View(name string) source.View
- func (s *Session) ViewOf(uri span.URI) (source.View, error)
- func (s *Session) Views() []source.View
Constants ¶
View Source
const ( ModTidyError = "go mod tidy" SyntaxError = "syntax" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) ParseGoHandle ¶
func (c *Cache) ParseGoHandle(fh source.FileHandle, mode source.ParseMode) source.ParseGoHandle
type DebugSession ¶
type DebugSession struct{ *Session }
func (DebugSession) Cache ¶
func (s DebugSession) Cache() debug.Cache
func (DebugSession) Files ¶
func (s DebugSession) Files() []*debug.File
func (DebugSession) ID ¶
func (s DebugSession) ID() string
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) DidModifyFiles ¶
func (*Session) SetOptions ¶
Click to show internal directories.
Click to hide internal directories.