Documentation
¶
Index ¶
- type Engine
- type FileDependents
- type Handler
- type Index
- func (idx *Index) Dependents(filePath string) (FileDependents, bool)
- func (idx *Index) RegisterClientBundle(bundle goxcompiler.CompileClientBundle)
- func (idx *Index) RegisterClientBundles(bundles []goxcompiler.CompileClientBundle)
- func (idx *Index) RegisterCompileResult(kind ReloadKind, result *goxcompiler.CompileResult)
- func (idx *Index) RemoveEntry(entryAbsPath string)
- type ReloadEntry
- type ReloadKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) Register ¶
func (e *Engine) Register(kind ReloadKind, handler Handler)
type FileDependents ¶
type FileDependents struct {
FileAbsPath string
Entries []ReloadEntry
}
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) Dependents ¶
func (idx *Index) Dependents(filePath string) (FileDependents, bool)
func (*Index) RegisterClientBundle ¶
func (idx *Index) RegisterClientBundle(bundle goxcompiler.CompileClientBundle)
func (*Index) RegisterClientBundles ¶
func (idx *Index) RegisterClientBundles(bundles []goxcompiler.CompileClientBundle)
func (*Index) RegisterCompileResult ¶
func (idx *Index) RegisterCompileResult(kind ReloadKind, result *goxcompiler.CompileResult)
func (*Index) RemoveEntry ¶
type ReloadEntry ¶
type ReloadEntry struct {
Kind ReloadKind
EntryPath string
EntryAbsPath string
OutPath string
OutAbsPath string
}
type ReloadKind ¶
type ReloadKind string
const ( ReloadConfig ReloadKind = "config" ReloadPage ReloadKind = "page" ReloadError ReloadKind = "error" ReloadClient ReloadKind = "client" )
Click to show internal directories.
Click to hide internal directories.