service

package
v0.0.0-...-ee63aef Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBoxNotFound = fmt.Errorf("box not found")
)

Functions

This section is empty.

Types

type BrowserService

type BrowserService struct {
	// contains filtered or unexported fields
}

BrowserService handles the core logic for browser automation.

func NewBrowserService

func NewBrowserService(boxMgr boxSvc.BoxService) (*BrowserService, error)

NewBrowserService creates a new BrowserService.

func (*BrowserService) Close

func (s *BrowserService) Close() error

Close cleans up the service.

func (*BrowserService) GetCdpURL

func (s *BrowserService) GetCdpURL(boxID string) (string, error)

GetCdpURL returns the Chrome DevTools Protocol URL for a given box. This allows external clients (like Playwright's connectOverCDP) to directly control the browser.

Jump to

Keyboard shortcuts

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