Documentation
¶
Index ¶
- Variables
- func Discover(ctx context.Context, endpoint string) (string, error)
- func EndpointClient(rt http.RoundTripper, timeout time.Duration) *http.Client
- type BindingCalled
- type Client
- func (c *Client) Attach(ctx context.Context, targetID string) (*Session, error)
- func (c *Client) Call(ctx context.Context, sessionID, method string, params, result any) error
- func (c *Client) Close() error
- func (c *Client) Done() <-chan struct{}
- func (c *Client) Err() error
- func (c *Client) Subscribe() *Subscription
- func (c *Client) Targets(ctx context.Context) ([]TargetInfo, error)
- type Error
- type EvaluateOptions
- type Event
- type ExceptionError
- type ExecutionContext
- type Session
- func (s *Session) AddBinding(ctx context.Context, name string) error
- func (s *Session) Call(ctx context.Context, method string, params, result any) error
- func (s *Session) Detach(ctx context.Context) error
- func (s *Session) Evaluate(ctx context.Context, expression string, opts EvaluateOptions, result any) error
- type Subscription
- type TargetInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("cdp: connection closed")
Functions ¶
func EndpointClient ¶ added in v1.29.3
Types ¶
type BindingCalled ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Subscribe ¶
func (c *Client) Subscribe() *Subscription
type Error ¶
type EvaluateOptions ¶
type ExceptionError ¶
type ExceptionError struct {
Text string
}
func (*ExceptionError) Error ¶
func (e *ExceptionError) Error() string
type ExecutionContext ¶
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
func (*Subscription) Close ¶
func (s *Subscription) Close()
func (*Subscription) Events ¶
func (s *Subscription) Events() <-chan Event
Click to show internal directories.
Click to hide internal directories.