Documentation ¶
Index ¶
- Constants
- func RegisterExternalStoreFunc(id models.Id, store StoreFunc)
- type App
- func (a *App) Debug(message ...interface{})
- func (a *App) Delete(key interface{})
- func (a *App) Dispatch(action flux.ActionInterface) chan struct{}
- func (a *App) ExternalStore(id models.Id) flux.StoreInterface
- func (a *App) Fail(err error)
- func (a *App) HandleGenericStatusMessage(payload *flux.Payload, message interface{}) bool
- func (a *App) Init()
- func (a *App) Log(args ...interface{})
- func (a *App) LogHide(args ...interface{})
- func (a *App) LogHidef(format string, args ...interface{})
- func (a *App) Logf(format string, args ...interface{})
- func (a *App) RegisterExternalStore(id models.Id, app *App)
- func (a *App) Watch(key interface{}, f func(done chan struct{}))
- type ConnectionStore
- type DataStore
- type EditorStore
- type EmptyStore
- type InjectorStore
- type PackageStore
- func (s *PackageStore) DisplayName(path string) string
- func (s *PackageStore) DisplayPath(path string) string
- func (s *PackageStore) Fresh() bool
- func (s *PackageStore) Handle(payload *flux.Payload) bool
- func (s *PackageStore) ObjectsHashes() map[string]string
- func (s *PackageStore) ObjectsInFile(path, file string) map[string]gotypes.Object
- func (s *PackageStore) PackageName(path string) string
- func (s *PackageStore) Path() string
- func (s *PackageStore) ResolveType(t gotypes.Type, path, file string, data dst.Expr) gotypes.Type
- func (s *PackageStore) SortedObjectsInFile(path, file string) []gotypes.Object
- func (s *PackageStore) SortedSourceFiles(path string) []string
- func (s *PackageStore) SortedSourcePackages() []string
- func (s *PackageStore) Source() map[string]map[string]string
- func (s *PackageStore) SourceHashes() map[string]string
- type PageStore
- type StoreFunc
- type TagStore
Constants ¶
View Source
const MaxResolveTypeDepth = 100
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { Dispatcher flux.DispatcherInterface Watcher flux.WatcherInterface Notifier flux.NotifierInterface Empty *EmptyStore Page *PageStore Injector *InjectorStore Connection *ConnectionStore Packages *PackageStore Tags *TagStore Data *DataStore Editor *EditorStore // contains filtered or unexported fields }
func (*App) Dispatch ¶
func (a *App) Dispatch(action flux.ActionInterface) chan struct{}
func (*App) ExternalStore ¶
func (a *App) ExternalStore(id models.Id) flux.StoreInterface
func (*App) HandleGenericStatusMessage ¶
type ConnectionStore ¶
type ConnectionStore struct {
// contains filtered or unexported fields
}
func NewConnectionStore ¶
func NewConnectionStore(app *App) *ConnectionStore
func (*ConnectionStore) Open ¶
func (s *ConnectionStore) Open() bool
type DataStore ¶
type DataStore struct {
// contains filtered or unexported fields
}
func NewDataStore ¶
type EditorStore ¶
type EditorStore struct {
// contains filtered or unexported fields
}
func NewEditorStore ¶
func NewEditorStore(a *App) *EditorStore
func (*EditorStore) Data ¶
func (s *EditorStore) Data() dst.Expr
func (*EditorStore) Name ¶
func (s *EditorStore) Name() string
func (*EditorStore) Root ¶
func (s *EditorStore) Root() gotypes.Object
func (*EditorStore) Type ¶
func (s *EditorStore) Type() gotypes.Type
type EmptyStore ¶
type EmptyStore struct {
// contains filtered or unexported fields
}
func NewEmptyStore ¶
func NewEmptyStore(a *App) *EmptyStore
type InjectorStore ¶
type InjectorStore struct {
// contains filtered or unexported fields
}
func NewInjectorStore ¶
func NewInjectorStore(a *App) *InjectorStore
type PackageStore ¶
type PackageStore struct {
// contains filtered or unexported fields
}
func NewPackageStore ¶
func NewPackageStore(a *App) *PackageStore
func (*PackageStore) DisplayName ¶
func (s *PackageStore) DisplayName(path string) string
func (*PackageStore) DisplayPath ¶
func (s *PackageStore) DisplayPath(path string) string
func (*PackageStore) Fresh ¶
func (s *PackageStore) Fresh() bool
Fresh is true if current cache matches the previously downloaded archives
func (*PackageStore) ObjectsHashes ¶
func (s *PackageStore) ObjectsHashes() map[string]string
func (*PackageStore) ObjectsInFile ¶
func (s *PackageStore) ObjectsInFile(path, file string) map[string]gotypes.Object
func (*PackageStore) PackageName ¶
func (s *PackageStore) PackageName(path string) string
func (*PackageStore) Path ¶
func (s *PackageStore) Path() string
func (*PackageStore) ResolveType ¶
ResolveType resolves Reference, Named, Pointer or Interface types to their underlying types. Tries to return one of: Basic, Array, Slice, Struct, Tuple, Signature, Map, or Chan. If the interface cannot be resolved or data == nil, it may return *Interface. If the reference can't be resolved, it may return *Reference.
func (*PackageStore) SortedObjectsInFile ¶
func (s *PackageStore) SortedObjectsInFile(path, file string) []gotypes.Object
func (*PackageStore) SortedSourceFiles ¶
func (s *PackageStore) SortedSourceFiles(path string) []string
func (*PackageStore) SortedSourcePackages ¶
func (s *PackageStore) SortedSourcePackages() []string
func (*PackageStore) SourceHashes ¶
func (s *PackageStore) SourceHashes() map[string]string
type PageStore ¶
type PageStore struct {
// contains filtered or unexported fields
}
func NewPageStore ¶
func (*PageStore) CurrentPackage ¶
func (*PageStore) SplitSizes ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.