Documentation
¶
Index ¶
- Variables
- type Browser
- type Client
- func (c *Client) Close() error
- func (c *Client) CloseTab(ctx context.Context, tabID, intent string) error
- func (c *Client) Navigate(ctx context.Context, tabID, rawURL, intent string) (Navigation, error)
- func (c *Client) NewTab(ctx context.Context, intent string) (string, error)
- func (c *Client) Snapshot(ctx context.Context, tabID, intent string, options SnapshotOptions) (Snapshot, error)
- type Link
- type Navigation
- type Options
- type ParsedSnapshot
- type Snapshot
- type SnapshotOptions
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Navigation ¶
type Navigation struct {
}
type ParsedSnapshot ¶
ParsedSnapshot is the DOM-derived part of a browser snapshot. It is kept separate from Snapshot because the Node sidecar only transports HTML; Go owns the interpretation of that HTML.
func ParseSnapshotHTML ¶
func ParseSnapshotHTML(rawHTML, rawBaseURL string) ParsedSnapshot
ParseSnapshotHTML extracts the useful snapshot content in Go. Keeping this function on the package surface also lets host-level tests exercise the exact parser used by Client without starting a browser process.
type SnapshotOptions ¶
Click to show internal directories.
Click to hide internal directories.