Documentation
¶
Rendered for js/wasm
Index ¶
- Constants
- Variables
- type Controller
- func (c *Controller) Close() error
- func (c *Controller) Execute(ctx context.Context) (rerr error)
- func (c *Controller) GetControllerInfo() *controller.Info
- func (c *Controller) HandleDirective(ctx context.Context, di directive.Instance) ([]directive.Resolver, error)
- func (c *Controller) HandleMountedStream(ctx context.Context, ms link.MountedStream) error
Constants ¶
View Source
const ControllerID = "bldr/devtool/web/entrypoint"
ControllerID is the controller ID.
Variables ¶
View Source
var Version = semver.MustParse("0.0.1")
Version is the version of this controller.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller manages the devtool web entrypoint.
func NewController ¶
func NewController( le *logrus.Entry, b bus.Bus, devtoolInfo *devtool_web.DevtoolInitBrowser, initm *web_runtime.WebRuntimeHostInit, linkUrl string, ) *Controller
func (*Controller) Close ¶
func (c *Controller) Close() error
Close releases any resources used by the controller. Error indicates any issue encountered releasing.
func (*Controller) Execute ¶
func (c *Controller) Execute(ctx context.Context) (rerr error)
Execute executes the controller. Returning nil ends execution. NOTE: we le.Fatal a lot of things in here
func (*Controller) GetControllerInfo ¶
func (c *Controller) GetControllerInfo() *controller.Info
GetControllerInfo returns information about the controller.
func (*Controller) HandleDirective ¶
func (c *Controller) HandleDirective(ctx context.Context, di directive.Instance) ([]directive.Resolver, error)
HandleDirective asks if the handler can resolve the directive. If it can, it returns resolver(s). If not, returns nil.
func (*Controller) HandleMountedStream ¶
func (c *Controller) HandleMountedStream(ctx context.Context, ms link.MountedStream) error
HandleMountedStream handles an incoming mounted stream on BrowserProtocolID.
Click to show internal directories.
Click to hide internal directories.