Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GalaxyPlugin ¶
type GalaxyPlugin struct {
orbit.BasePlugin
Compiler *compiler.ComponentCompiler
Router *router.Router
EndpointCompiler *endpoints.EndpointCompiler
Bundler *assets.Bundler
Cache *server.PageCache
ChangeTracker *hmr.ChangeTracker
ComponentTracker *hmr.ComponentTracker
MiddlewareCompiler *middleware.MiddlewareCompiler
MiddlewareChain *middleware.Chain
LoadedMiddleware *middleware.LoadedMiddleware
Lifecycle *lifecycle.Lifecycle
UseCodegen bool
CodegenPort int
RootDir string
PagesDir string
PublicDir string
// contains filtered or unexported fields
}
func NewGalaxyPlugin ¶
func NewGalaxyPlugin(rootDir, pagesDir, publicDir string) *GalaxyPlugin
func (*GalaxyPlugin) ConfigResolved ¶
func (p *GalaxyPlugin) ConfigResolved(config any) error
func (*GalaxyPlugin) ConfigureServer ¶
func (p *GalaxyPlugin) ConfigureServer(server any) error
func (*GalaxyPlugin) HandleHotUpdate ¶
func (p *GalaxyPlugin) HandleHotUpdate(file string) ([]string, error)
func (*GalaxyPlugin) Middleware ¶
func (p *GalaxyPlugin) Middleware() orbit.Middleware
func (*GalaxyPlugin) Name ¶
func (p *GalaxyPlugin) Name() string
Click to show internal directories.
Click to hide internal directories.