Documentation
¶
Overview ¶
Package extensions provides the Chrome DevTools Protocol commands, types, and events for the Extensions domain.
Defines commands and events for browser extensions. Available if the client is connected using the --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging flag is set.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type LoadUnpackedParams
- func (p *LoadUnpackedParams) Do(ctx context.Context) (id string, err error)
- func (v LoadUnpackedParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v LoadUnpackedParams) MarshalJSON() ([]byte, error)
- func (v *LoadUnpackedParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *LoadUnpackedParams) UnmarshalJSON(data []byte) error
- type LoadUnpackedReturns
Constants ¶
const (
CommandLoadUnpacked = "Extensions.loadUnpacked"
)
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadUnpackedParams ¶
type LoadUnpackedParams struct {
Path string `json:"path"` // Absolute file path.
}
LoadUnpackedParams installs an unpacked extension from the filesystem similar to --load-extension CLI flags. Returns extension ID once the extension has been installed.
func LoadUnpacked ¶
func LoadUnpacked(path string) *LoadUnpackedParams
LoadUnpacked installs an unpacked extension from the filesystem similar to --load-extension CLI flags. Returns extension ID once the extension has been installed.
See: https://chromedevtools.github.io/devtools-protocol/tot/Extensions#method-loadUnpacked
parameters:
path - Absolute file path.
func (*LoadUnpackedParams) Do ¶
func (p *LoadUnpackedParams) Do(ctx context.Context) (id string, err error)
Do executes Extensions.loadUnpacked against the provided context.
returns:
id - Extension id.
func (LoadUnpackedParams) MarshalEasyJSON ¶
func (v LoadUnpackedParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (LoadUnpackedParams) MarshalJSON ¶
func (v LoadUnpackedParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*LoadUnpackedParams) UnmarshalEasyJSON ¶
func (v *LoadUnpackedParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*LoadUnpackedParams) UnmarshalJSON ¶
func (v *LoadUnpackedParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type LoadUnpackedReturns ¶
type LoadUnpackedReturns struct {
ID string `json:"id,omitempty"` // Extension id.
}
LoadUnpackedReturns return values.
func (LoadUnpackedReturns) MarshalEasyJSON ¶
func (v LoadUnpackedReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (LoadUnpackedReturns) MarshalJSON ¶
func (v LoadUnpackedReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*LoadUnpackedReturns) UnmarshalEasyJSON ¶
func (v *LoadUnpackedReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*LoadUnpackedReturns) UnmarshalJSON ¶
func (v *LoadUnpackedReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface