devtool_web_entrypoint_controller

package
v0.51.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Rendered for js/wasm

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL