Versions in this module Expand all Collapse all v0 v0.1.1 May 12, 2022 v0.1.0 May 12, 2022 Changes in this version + var KeyCreateSession = NewSessionKey("create_session", "A new session was added") + var KeyShutdownSession = NewSessionKey("shutdown_session", "A session was shut down") + var KeyUpdateSession = NewSessionKey("update_session", "Updated information about a session") + type Cache struct + func New(options func(*source.Options)) *Cache + func (c *Cache) FileSet() *token.FileSet + func (c *Cache) GetFile(ctx context.Context, uri span.URI) (source.FileHandle, error) + func (c *Cache) ID() string + func (c *Cache) MemStats() map[reflect.Type]int + func (c *Cache) NewSession(ctx context.Context) *Session + func (c *Cache) PackageStats(withNames bool) template.HTML + type KnownMetadata struct + ShouldLoad bool + Valid bool + type Metadata struct + CompiledGoFiles []span.URI + Config *packages.Config + Deps []PackageID + Errors []packages.Error + ForTest PackagePath + GoFiles []span.URI + ID PackageID + IsIntermediateTestVariant bool + MissingDeps map[PackagePath]struct{} + Module *packages.Module + Name PackageName + PkgPath PackagePath + TypesSizes types.Sizes + func (m *Metadata) ModuleInfo() *packages.Module + func (m *Metadata) PackageName() string + func (m *Metadata) PackagePath() string + type PackageID string + type PackageName string + type PackagePath string + type Session struct + func (s *Session) Cache() interface{} + func (s *Session) DidModifyFiles(ctx context.Context, changes []source.FileModification) (map[source.Snapshot][]span.URI, []func(), error) + func (s *Session) ExpandModificationsToDirectories(ctx context.Context, changes []source.FileModification) []source.FileModification + func (s *Session) FileWatchingGlobPatterns(ctx context.Context) map[string]struct{} + func (s *Session) GetFile(ctx context.Context, uri span.URI) (source.FileHandle, error) + func (s *Session) ID() string + func (s *Session) ModifyFiles(ctx context.Context, changes []source.FileModification) error + func (s *Session) NewView(ctx context.Context, name string, folder span.URI, options *source.Options) (source.View, source.Snapshot, func(), error) + func (s *Session) Options() *source.Options + func (s *Session) Overlays() []source.Overlay + func (s *Session) SetOptions(options *source.Options) + func (s *Session) SetProgressTracker(tracker *progress.Tracker) + func (s *Session) Shutdown(ctx context.Context) + func (s *Session) String() string + func (s *Session) View(name string) source.View + func (s *Session) ViewOf(uri span.URI) (source.View, error) + func (s *Session) Views() []source.View + type SessionKey struct + func NewSessionKey(name, description string) *SessionKey + func (k *SessionKey) Description() string + func (k *SessionKey) Format(w io.Writer, buf []byte, l label.Label) + func (k *SessionKey) From(t label.Label) *Session + func (k *SessionKey) Get(lm label.Map) *Session + func (k *SessionKey) Name() string + func (k *SessionKey) Of(v *Session) label.Label + type View struct + func (v *View) FileKind(fh source.FileHandle) source.FileKind + func (v *View) Folder() span.URI + func (v *View) ID() string + func (v *View) IsGoPrivatePath(target string) bool + func (v *View) ModuleUpgrades() map[string]string + func (v *View) Name() string + func (v *View) Options() *source.Options + func (v *View) Rebuild(ctx context.Context) (source.Snapshot, func(), error) + func (v *View) RegisterModuleUpgrades(upgrades map[string]string) + func (v *View) Session() *Session + func (v *View) SetOptions(ctx context.Context, options *source.Options) (source.View, error) + func (v *View) Shutdown(ctx context.Context) + func (v *View) Snapshot(ctx context.Context) (source.Snapshot, func())