Documentation
¶
Index ¶
- type Action
- type App
- type Browser
- type CDP
- func (c *CDP) AttachToTarget(ctx context.Context, targetID string) error
- func (c *CDP) Close() error
- func (c *CDP) CloseBrowser() error
- func (c *CDP) Connect(ctx context.Context) error
- func (c *CDP) DisableFetch(ctx context.Context) error
- func (c *CDP) EnableFetch(ctx context.Context) (fetch.RequestPausedClient, error)
- func (c *CDP) EnableNetwork(ctx context.Context) error
- func (c *CDP) ListTargets(ctx context.Context) ([]CDPTarget, error)
- func (c *CDP) NavigateTo(ctx context.Context, targetURL string) error
- func (c *CDP) NewTab(ctx context.Context, targetURL string) (*CDPTarget, error)
- func (c *CDP) TargetClient() *cdp.Client
- type CDPTarget
- type Condition
- type Config
- type Intercept
- type JSONPatch
- type Match
- type Options
- type Rule
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Type string `json:"type"`
Name string `json:"name,omitempty"`
Value any `json:"value,omitempty"`
Search string `json:"search,omitempty"`
Replace string `json:"replace,omitempty"`
ReplaceAll bool `json:"replaceAll,omitempty"`
StatusCode int `json:"statusCode,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
Body string `json:"body,omitempty"`
BodyEncoding string `json:"bodyEncoding,omitempty"`
Encoding string `json:"encoding,omitempty"`
Patches []JSONPatch `json:"patches,omitempty"`
}
func (*Action) UnmarshalJSON ¶
type Browser ¶
type Browser struct {
// contains filtered or unexported fields
}
func NewBrowser ¶
func (*Browser) IsLaunched ¶
type CDP ¶
type CDP struct {
// contains filtered or unexported fields
}
func (*CDP) AttachToTarget ¶
func (*CDP) CloseBrowser ¶
func (*CDP) EnableFetch ¶
func (*CDP) TargetClient ¶
type Condition ¶
type Condition struct {
Type string `json:"type"`
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
Values []string `json:"values,omitempty"`
Pattern string `json:"pattern,omitempty"`
Path string `json:"path,omitempty"`
}
func (*Condition) UnmarshalJSON ¶
type Config ¶
type Intercept ¶
type Intercept struct {
// contains filtered or unexported fields
}
func NewIntercept ¶
Click to show internal directories.
Click to hide internal directories.