Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashContent ¶
Types ¶
type DevServer ¶
type DevServer struct {
Router *router.Router
RootDir string
PagesDir string
PublicDir string
Port int
Bundler *assets.Bundler
Compiler *compiler.ComponentCompiler
EndpointCompiler *endpoints.EndpointCompiler
Verbose bool
Lifecycle *lifecycle.Lifecycle
MiddlewareCompiler *middleware.MiddlewareCompiler
LoadedMiddleware *middleware.LoadedMiddleware
MiddlewareChain *middleware.Chain
HasMiddleware bool
UseCodegen bool
PageCache *PageCache
PluginCompiler *PluginCompiler
PluginManager *plugins.Manager
HMRServer *hmr.Server
ChangeTracker *hmr.ChangeTracker
ComponentTracker *hmr.ComponentTracker
// contains filtered or unexported fields
}
func NewDevServer ¶
func (*DevServer) ReloadMiddleware ¶
func (*DevServer) ReloadRoutes ¶
func (*DevServer) ScheduleCodegenRebuild ¶
func (*DevServer) ScheduleCodegenRebuildWithType ¶
type PageCache ¶
type PageCache struct {
// contains filtered or unexported fields
}
func NewPageCache ¶
func NewPageCache() *PageCache
func (*PageCache) Invalidate ¶
func (*PageCache) Set ¶
func (c *PageCache) Set(pattern string, plugin *PagePlugin)
type PagePlugin ¶
type PluginCompiler ¶
type PluginCompiler struct {
CacheDir string
ModuleName string
GalaxyPath string
ProjectRoot string
}
func NewPluginCompiler ¶
func NewPluginCompiler(cacheDir, moduleName, galaxyPath, projectRoot string) *PluginCompiler
func (*PluginCompiler) CompilePage ¶
func (pc *PluginCompiler) CompilePage(route *router.Route, comp *parser.Component, fmHash string) (*PagePlugin, error)
Click to show internal directories.
Click to hide internal directories.