Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoizedFS ¶
type MemoizedFS struct {
// contains filtered or unexported fields
}
A MemoizedFS is a file source that memoizes reads, to reduce IO.
func NewMemoizedFS ¶
func NewMemoizedFS() *MemoizedFS
func (*MemoizedFS) ReadFile ¶
func (fs *MemoizedFS) ReadFile(ctx context.Context, uri protocol.DocumentURI) (file.Handle, error)
ReadFile stats and (maybe) reads the file, updates the cache, and returns it.
type OverlayFS ¶
type OverlayFS struct {
// contains filtered or unexported fields
}
An OverlayFS is a file.Source that keeps track of overlays on top of a delegate FileSource.
func NewOverlayFS ¶
func (*OverlayFS) Overlays ¶
func (fs *OverlayFS) Overlays() []*overlay
Overlays returns a new unordered array of overlays.
func (*OverlayFS) UpdateOverlays ¶
Precondition: caller holds s.viewMu lock. TODO(rfindley): move this to fs_overlay.go.
Click to show internal directories.
Click to hide internal directories.