Documentation ¶
Overview ¶
Package target provides the Chrome Debugging Protocol commands, types, and events for the Target domain.
Supports additional targets discovery and allows to attach to them.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type ActivateTargetParams
- func (p *ActivateTargetParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v ActivateTargetParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ActivateTargetParams) MarshalJSON() ([]byte, error)
- func (v *ActivateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ActivateTargetParams) UnmarshalJSON(data []byte) error
- type AttachToTargetParams
- func (p *AttachToTargetParams) Do(ctxt context.Context, h cdp.Executor) (sessionID SessionID, err error)
- func (v AttachToTargetParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v AttachToTargetParams) MarshalJSON() ([]byte, error)
- func (v *AttachToTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *AttachToTargetParams) UnmarshalJSON(data []byte) error
- type AttachToTargetReturns
- type BrowserContextID
- type CloseTargetParams
- func (p *CloseTargetParams) Do(ctxt context.Context, h cdp.Executor) (success bool, err error)
- func (v CloseTargetParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CloseTargetParams) MarshalJSON() ([]byte, error)
- func (v *CloseTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CloseTargetParams) UnmarshalJSON(data []byte) error
- type CloseTargetReturns
- type CreateBrowserContextParams
- func (p *CreateBrowserContextParams) Do(ctxt context.Context, h cdp.Executor) (browserContextID BrowserContextID, err error)
- func (v CreateBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CreateBrowserContextParams) MarshalJSON() ([]byte, error)
- func (v *CreateBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CreateBrowserContextParams) UnmarshalJSON(data []byte) error
- type CreateBrowserContextReturns
- type CreateTargetParams
- func (p *CreateTargetParams) Do(ctxt context.Context, h cdp.Executor) (targetID ID, err error)
- func (v CreateTargetParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CreateTargetParams) MarshalJSON() ([]byte, error)
- func (v *CreateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CreateTargetParams) UnmarshalJSON(data []byte) error
- func (p CreateTargetParams) WithBrowserContextID(browserContextID BrowserContextID) *CreateTargetParams
- func (p CreateTargetParams) WithEnableBeginFrameControl(enableBeginFrameControl bool) *CreateTargetParams
- func (p CreateTargetParams) WithHeight(height int64) *CreateTargetParams
- func (p CreateTargetParams) WithWidth(width int64) *CreateTargetParams
- type CreateTargetReturns
- type DetachFromTargetParams
- func (p *DetachFromTargetParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v DetachFromTargetParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DetachFromTargetParams) MarshalJSON() ([]byte, error)
- func (v *DetachFromTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DetachFromTargetParams) UnmarshalJSON(data []byte) error
- func (p DetachFromTargetParams) WithSessionID(sessionID SessionID) *DetachFromTargetParams
- type DisposeBrowserContextParams
- func (p *DisposeBrowserContextParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v DisposeBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DisposeBrowserContextParams) MarshalJSON() ([]byte, error)
- func (v *DisposeBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DisposeBrowserContextParams) UnmarshalJSON(data []byte) error
- type EventAttachedToTarget
- type EventDetachedFromTarget
- type EventReceivedMessageFromTarget
- type EventTargetCrashed
- type EventTargetCreated
- type EventTargetDestroyed
- type EventTargetInfoChanged
- type ExposeDevToolsProtocolParams
- func (p *ExposeDevToolsProtocolParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v ExposeDevToolsProtocolParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ExposeDevToolsProtocolParams) MarshalJSON() ([]byte, error)
- func (v *ExposeDevToolsProtocolParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ExposeDevToolsProtocolParams) UnmarshalJSON(data []byte) error
- func (p ExposeDevToolsProtocolParams) WithBindingName(bindingName string) *ExposeDevToolsProtocolParams
- type GetBrowserContextsParams
- func (p *GetBrowserContextsParams) Do(ctxt context.Context, h cdp.Executor) (browserContextIds []BrowserContextID, err error)
- func (v GetBrowserContextsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetBrowserContextsParams) MarshalJSON() ([]byte, error)
- func (v *GetBrowserContextsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetBrowserContextsParams) UnmarshalJSON(data []byte) error
- type GetBrowserContextsReturns
- type GetTargetInfoParams
- func (p *GetTargetInfoParams) Do(ctxt context.Context, h cdp.Executor) (targetInfo *Info, err error)
- func (v GetTargetInfoParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetTargetInfoParams) MarshalJSON() ([]byte, error)
- func (v *GetTargetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetTargetInfoParams) UnmarshalJSON(data []byte) error
- type GetTargetInfoReturns
- type GetTargetsParams
- func (p *GetTargetsParams) Do(ctxt context.Context, h cdp.Executor) (targetInfos []*Info, err error)
- func (v GetTargetsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetTargetsParams) MarshalJSON() ([]byte, error)
- func (v *GetTargetsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetTargetsParams) UnmarshalJSON(data []byte) error
- type GetTargetsReturns
- type ID
- type Info
- type RemoteLocation
- type SendMessageToTargetParams
- func (p *SendMessageToTargetParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v SendMessageToTargetParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SendMessageToTargetParams) MarshalJSON() ([]byte, error)
- func (v *SendMessageToTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SendMessageToTargetParams) UnmarshalJSON(data []byte) error
- func (p SendMessageToTargetParams) WithSessionID(sessionID SessionID) *SendMessageToTargetParams
- type SessionID
- type SetAutoAttachParams
- func (p *SetAutoAttachParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v SetAutoAttachParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetAutoAttachParams) MarshalJSON() ([]byte, error)
- func (v *SetAutoAttachParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetAutoAttachParams) UnmarshalJSON(data []byte) error
- type SetDiscoverTargetsParams
- func (p *SetDiscoverTargetsParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v SetDiscoverTargetsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetDiscoverTargetsParams) MarshalJSON() ([]byte, error)
- func (v *SetDiscoverTargetsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetDiscoverTargetsParams) UnmarshalJSON(data []byte) error
- type SetRemoteLocationsParams
- func (p *SetRemoteLocationsParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v SetRemoteLocationsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetRemoteLocationsParams) MarshalJSON() ([]byte, error)
- func (v *SetRemoteLocationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetRemoteLocationsParams) UnmarshalJSON(data []byte) error
Constants ¶
const ( CommandActivateTarget = "Target.activateTarget" CommandAttachToTarget = "Target.attachToTarget" CommandCloseTarget = "Target.closeTarget" CommandExposeDevToolsProtocol = "Target.exposeDevToolsProtocol" CommandCreateBrowserContext = "Target.createBrowserContext" CommandGetBrowserContexts = "Target.getBrowserContexts" CommandCreateTarget = "Target.createTarget" CommandDetachFromTarget = "Target.detachFromTarget" CommandDisposeBrowserContext = "Target.disposeBrowserContext" CommandGetTargetInfo = "Target.getTargetInfo" CommandGetTargets = "Target.getTargets" CommandSendMessageToTarget = "Target.sendMessageToTarget" CommandSetAutoAttach = "Target.setAutoAttach" CommandSetDiscoverTargets = "Target.setDiscoverTargets" CommandSetRemoteLocations = "Target.setRemoteLocations" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateTargetParams ¶
type ActivateTargetParams struct {
TargetID ID `json:"targetId"`
}
ActivateTargetParams activates (focuses) the target.
func ActivateTarget ¶
func ActivateTarget(targetID ID) *ActivateTargetParams
ActivateTarget activates (focuses) the target.
parameters:
targetID
func (ActivateTargetParams) MarshalEasyJSON ¶
func (v ActivateTargetParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ActivateTargetParams) MarshalJSON ¶
func (v ActivateTargetParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ActivateTargetParams) UnmarshalEasyJSON ¶
func (v *ActivateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ActivateTargetParams) UnmarshalJSON ¶
func (v *ActivateTargetParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AttachToTargetParams ¶
type AttachToTargetParams struct {
TargetID ID `json:"targetId"`
}
AttachToTargetParams attaches to the target with given id.
func AttachToTarget ¶
func AttachToTarget(targetID ID) *AttachToTargetParams
AttachToTarget attaches to the target with given id.
parameters:
targetID
func (*AttachToTargetParams) Do ¶
func (p *AttachToTargetParams) Do(ctxt context.Context, h cdp.Executor) (sessionID SessionID, err error)
Do executes Target.attachToTarget against the provided context.
returns:
sessionID - Id assigned to the session.
func (AttachToTargetParams) MarshalEasyJSON ¶
func (v AttachToTargetParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AttachToTargetParams) MarshalJSON ¶
func (v AttachToTargetParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AttachToTargetParams) UnmarshalEasyJSON ¶
func (v *AttachToTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AttachToTargetParams) UnmarshalJSON ¶
func (v *AttachToTargetParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AttachToTargetReturns ¶
type AttachToTargetReturns struct {
SessionID SessionID `json:"sessionId,omitempty"` // Id assigned to the session.
}
AttachToTargetReturns return values.
func (AttachToTargetReturns) MarshalEasyJSON ¶
func (v AttachToTargetReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AttachToTargetReturns) MarshalJSON ¶
func (v AttachToTargetReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AttachToTargetReturns) UnmarshalEasyJSON ¶
func (v *AttachToTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AttachToTargetReturns) UnmarshalJSON ¶
func (v *AttachToTargetReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type BrowserContextID ¶
type BrowserContextID string
BrowserContextID [no description].
func (BrowserContextID) String ¶
func (t BrowserContextID) String() string
String returns the BrowserContextID as string value.
type CloseTargetParams ¶
type CloseTargetParams struct {
TargetID ID `json:"targetId"`
}
CloseTargetParams closes the target. If the target is a page that gets closed too.
func CloseTarget ¶
func CloseTarget(targetID ID) *CloseTargetParams
CloseTarget closes the target. If the target is a page that gets closed too.
parameters:
targetID
func (*CloseTargetParams) Do ¶
Do executes Target.closeTarget against the provided context.
returns:
success
func (CloseTargetParams) MarshalEasyJSON ¶
func (v CloseTargetParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CloseTargetParams) MarshalJSON ¶
func (v CloseTargetParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CloseTargetParams) UnmarshalEasyJSON ¶
func (v *CloseTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CloseTargetParams) UnmarshalJSON ¶
func (v *CloseTargetParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CloseTargetReturns ¶
type CloseTargetReturns struct {
Success bool `json:"success,omitempty"`
}
CloseTargetReturns return values.
func (CloseTargetReturns) MarshalEasyJSON ¶
func (v CloseTargetReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CloseTargetReturns) MarshalJSON ¶
func (v CloseTargetReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CloseTargetReturns) UnmarshalEasyJSON ¶
func (v *CloseTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CloseTargetReturns) UnmarshalJSON ¶
func (v *CloseTargetReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CreateBrowserContextParams ¶
type CreateBrowserContextParams struct{}
CreateBrowserContextParams creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.
func CreateBrowserContext ¶
func CreateBrowserContext() *CreateBrowserContextParams
CreateBrowserContext creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.
func (*CreateBrowserContextParams) Do ¶
func (p *CreateBrowserContextParams) Do(ctxt context.Context, h cdp.Executor) (browserContextID BrowserContextID, err error)
Do executes Target.createBrowserContext against the provided context.
returns:
browserContextID - The id of the context created.
func (CreateBrowserContextParams) MarshalEasyJSON ¶
func (v CreateBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CreateBrowserContextParams) MarshalJSON ¶
func (v CreateBrowserContextParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CreateBrowserContextParams) UnmarshalEasyJSON ¶
func (v *CreateBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CreateBrowserContextParams) UnmarshalJSON ¶
func (v *CreateBrowserContextParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CreateBrowserContextReturns ¶
type CreateBrowserContextReturns struct {
BrowserContextID BrowserContextID `json:"browserContextId,omitempty"` // The id of the context created.
}
CreateBrowserContextReturns return values.
func (CreateBrowserContextReturns) MarshalEasyJSON ¶
func (v CreateBrowserContextReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CreateBrowserContextReturns) MarshalJSON ¶
func (v CreateBrowserContextReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CreateBrowserContextReturns) UnmarshalEasyJSON ¶
func (v *CreateBrowserContextReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CreateBrowserContextReturns) UnmarshalJSON ¶
func (v *CreateBrowserContextReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CreateTargetParams ¶
type CreateTargetParams struct { URL string `json:"url"` // The initial URL the page will be navigated to. Width int64 `json:"width,omitempty"` // Frame width in DIP (headless chrome only). Height int64 `json:"height,omitempty"` // Frame height in DIP (headless chrome only). BrowserContextID BrowserContextID `json:"browserContextId,omitempty"` // The browser context to create the page in. EnableBeginFrameControl bool `json:"enableBeginFrameControl,omitempty"` // Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, not supported on MacOS yet, false by default). }
CreateTargetParams creates a new page.
func CreateTarget ¶
func CreateTarget(url string) *CreateTargetParams
CreateTarget creates a new page.
parameters:
url - The initial URL the page will be navigated to.
func (*CreateTargetParams) Do ¶
Do executes Target.createTarget against the provided context.
returns:
targetID - The id of the page opened.
func (CreateTargetParams) MarshalEasyJSON ¶
func (v CreateTargetParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CreateTargetParams) MarshalJSON ¶
func (v CreateTargetParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CreateTargetParams) UnmarshalEasyJSON ¶
func (v *CreateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CreateTargetParams) UnmarshalJSON ¶
func (v *CreateTargetParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (CreateTargetParams) WithBrowserContextID ¶
func (p CreateTargetParams) WithBrowserContextID(browserContextID BrowserContextID) *CreateTargetParams
WithBrowserContextID the browser context to create the page in.
func (CreateTargetParams) WithEnableBeginFrameControl ¶
func (p CreateTargetParams) WithEnableBeginFrameControl(enableBeginFrameControl bool) *CreateTargetParams
WithEnableBeginFrameControl whether BeginFrames for this target will be controlled via DevTools (headless chrome only, not supported on MacOS yet, false by default).
func (CreateTargetParams) WithHeight ¶
func (p CreateTargetParams) WithHeight(height int64) *CreateTargetParams
WithHeight frame height in DIP (headless chrome only).
func (CreateTargetParams) WithWidth ¶
func (p CreateTargetParams) WithWidth(width int64) *CreateTargetParams
WithWidth frame width in DIP (headless chrome only).
type CreateTargetReturns ¶
type CreateTargetReturns struct {
TargetID ID `json:"targetId,omitempty"` // The id of the page opened.
}
CreateTargetReturns return values.
func (CreateTargetReturns) MarshalEasyJSON ¶
func (v CreateTargetReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CreateTargetReturns) MarshalJSON ¶
func (v CreateTargetReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CreateTargetReturns) UnmarshalEasyJSON ¶
func (v *CreateTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CreateTargetReturns) UnmarshalJSON ¶
func (v *CreateTargetReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DetachFromTargetParams ¶
type DetachFromTargetParams struct {
SessionID SessionID `json:"sessionId,omitempty"` // Session to detach.
}
DetachFromTargetParams detaches session with given id.
func DetachFromTarget ¶
func DetachFromTarget() *DetachFromTargetParams
DetachFromTarget detaches session with given id.
parameters:
func (*DetachFromTargetParams) Do ¶
Do executes Target.detachFromTarget against the provided context.
func (DetachFromTargetParams) MarshalEasyJSON ¶
func (v DetachFromTargetParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DetachFromTargetParams) MarshalJSON ¶
func (v DetachFromTargetParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DetachFromTargetParams) UnmarshalEasyJSON ¶
func (v *DetachFromTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DetachFromTargetParams) UnmarshalJSON ¶
func (v *DetachFromTargetParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (DetachFromTargetParams) WithSessionID ¶
func (p DetachFromTargetParams) WithSessionID(sessionID SessionID) *DetachFromTargetParams
WithSessionID session to detach.
type DisposeBrowserContextParams ¶
type DisposeBrowserContextParams struct {
BrowserContextID BrowserContextID `json:"browserContextId"`
}
DisposeBrowserContextParams deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks.
func DisposeBrowserContext ¶
func DisposeBrowserContext(browserContextID BrowserContextID) *DisposeBrowserContextParams
DisposeBrowserContext deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks.
parameters:
browserContextID
func (*DisposeBrowserContextParams) Do ¶
Do executes Target.disposeBrowserContext against the provided context.
func (DisposeBrowserContextParams) MarshalEasyJSON ¶
func (v DisposeBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisposeBrowserContextParams) MarshalJSON ¶
func (v DisposeBrowserContextParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisposeBrowserContextParams) UnmarshalEasyJSON ¶
func (v *DisposeBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisposeBrowserContextParams) UnmarshalJSON ¶
func (v *DisposeBrowserContextParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventAttachedToTarget ¶
type EventAttachedToTarget struct { SessionID SessionID `json:"sessionId"` // Identifier assigned to the session used to send/receive messages. TargetInfo *Info `json:"targetInfo"` WaitingForDebugger bool `json:"waitingForDebugger"` }
EventAttachedToTarget issued when attached to target because of auto-attach or attachToTarget command.
func (EventAttachedToTarget) MarshalEasyJSON ¶
func (v EventAttachedToTarget) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventAttachedToTarget) MarshalJSON ¶
func (v EventAttachedToTarget) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventAttachedToTarget) UnmarshalEasyJSON ¶
func (v *EventAttachedToTarget) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventAttachedToTarget) UnmarshalJSON ¶
func (v *EventAttachedToTarget) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventDetachedFromTarget ¶
type EventDetachedFromTarget struct {
SessionID SessionID `json:"sessionId"` // Detached session identifier.
}
EventDetachedFromTarget issued when detached from target for any reason (including detachFromTarget command). Can be issued multiple times per target if multiple sessions have been attached to it.
func (EventDetachedFromTarget) MarshalEasyJSON ¶
func (v EventDetachedFromTarget) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventDetachedFromTarget) MarshalJSON ¶
func (v EventDetachedFromTarget) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventDetachedFromTarget) UnmarshalEasyJSON ¶
func (v *EventDetachedFromTarget) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventDetachedFromTarget) UnmarshalJSON ¶
func (v *EventDetachedFromTarget) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventReceivedMessageFromTarget ¶
type EventReceivedMessageFromTarget struct { SessionID SessionID `json:"sessionId"` // Identifier of a session which sends a message. Message string `json:"message"` }
EventReceivedMessageFromTarget notifies about a new protocol message received from the session (as reported in attachedToTarget event).
func (EventReceivedMessageFromTarget) MarshalEasyJSON ¶
func (v EventReceivedMessageFromTarget) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventReceivedMessageFromTarget) MarshalJSON ¶
func (v EventReceivedMessageFromTarget) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventReceivedMessageFromTarget) UnmarshalEasyJSON ¶
func (v *EventReceivedMessageFromTarget) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventReceivedMessageFromTarget) UnmarshalJSON ¶
func (v *EventReceivedMessageFromTarget) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventTargetCrashed ¶
type EventTargetCrashed struct { TargetID ID `json:"targetId"` Status string `json:"status"` // Termination status type. ErrorCode int64 `json:"errorCode"` // Termination error code. }
EventTargetCrashed issued when a target has crashed.
func (EventTargetCrashed) MarshalEasyJSON ¶
func (v EventTargetCrashed) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventTargetCrashed) MarshalJSON ¶
func (v EventTargetCrashed) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventTargetCrashed) UnmarshalEasyJSON ¶
func (v *EventTargetCrashed) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventTargetCrashed) UnmarshalJSON ¶
func (v *EventTargetCrashed) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventTargetCreated ¶
type EventTargetCreated struct {
TargetInfo *Info `json:"targetInfo"`
}
EventTargetCreated issued when a possible inspection target is created.
func (EventTargetCreated) MarshalEasyJSON ¶
func (v EventTargetCreated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventTargetCreated) MarshalJSON ¶
func (v EventTargetCreated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventTargetCreated) UnmarshalEasyJSON ¶
func (v *EventTargetCreated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventTargetCreated) UnmarshalJSON ¶
func (v *EventTargetCreated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventTargetDestroyed ¶
type EventTargetDestroyed struct {
TargetID ID `json:"targetId"`
}
EventTargetDestroyed issued when a target is destroyed.
func (EventTargetDestroyed) MarshalEasyJSON ¶
func (v EventTargetDestroyed) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventTargetDestroyed) MarshalJSON ¶
func (v EventTargetDestroyed) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventTargetDestroyed) UnmarshalEasyJSON ¶
func (v *EventTargetDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventTargetDestroyed) UnmarshalJSON ¶
func (v *EventTargetDestroyed) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventTargetInfoChanged ¶
type EventTargetInfoChanged struct {
TargetInfo *Info `json:"targetInfo"`
}
EventTargetInfoChanged issued when some information about a target has changed. This only happens between targetCreated and targetDestroyed.
func (EventTargetInfoChanged) MarshalEasyJSON ¶
func (v EventTargetInfoChanged) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventTargetInfoChanged) MarshalJSON ¶
func (v EventTargetInfoChanged) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventTargetInfoChanged) UnmarshalEasyJSON ¶
func (v *EventTargetInfoChanged) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventTargetInfoChanged) UnmarshalJSON ¶
func (v *EventTargetInfoChanged) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ExposeDevToolsProtocolParams ¶
type ExposeDevToolsProtocolParams struct { TargetID ID `json:"targetId"` BindingName string `json:"bindingName,omitempty"` // Binding name, 'cdp' if not specified. }
ExposeDevToolsProtocolParams inject object to the target's main frame that provides a communication channel with browser target. Injected object will be available as window[bindingName]. The object has the follwing API: - binding.send(json) - a method to send messages over the remote debugging protocol - binding.onmessage = json => handleMessage(json) - a callback that will be called for the protocol notifications and command responses.
func ExposeDevToolsProtocol ¶
func ExposeDevToolsProtocol(targetID ID) *ExposeDevToolsProtocolParams
ExposeDevToolsProtocol inject object to the target's main frame that provides a communication channel with browser target. Injected object will be available as window[bindingName]. The object has the follwing API: - binding.send(json) - a method to send messages over the remote debugging protocol - binding.onmessage = json => handleMessage(json) - a callback that will be called for the protocol notifications and command responses.
parameters:
targetID
func (*ExposeDevToolsProtocolParams) Do ¶
Do executes Target.exposeDevToolsProtocol against the provided context.
func (ExposeDevToolsProtocolParams) MarshalEasyJSON ¶
func (v ExposeDevToolsProtocolParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ExposeDevToolsProtocolParams) MarshalJSON ¶
func (v ExposeDevToolsProtocolParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ExposeDevToolsProtocolParams) UnmarshalEasyJSON ¶
func (v *ExposeDevToolsProtocolParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ExposeDevToolsProtocolParams) UnmarshalJSON ¶
func (v *ExposeDevToolsProtocolParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (ExposeDevToolsProtocolParams) WithBindingName ¶
func (p ExposeDevToolsProtocolParams) WithBindingName(bindingName string) *ExposeDevToolsProtocolParams
WithBindingName binding name, 'cdp' if not specified.
type GetBrowserContextsParams ¶
type GetBrowserContextsParams struct{}
GetBrowserContextsParams returns all browser contexts created with Target.createBrowserContext method.
func GetBrowserContexts ¶
func GetBrowserContexts() *GetBrowserContextsParams
GetBrowserContexts returns all browser contexts created with Target.createBrowserContext method.
func (*GetBrowserContextsParams) Do ¶
func (p *GetBrowserContextsParams) Do(ctxt context.Context, h cdp.Executor) (browserContextIds []BrowserContextID, err error)
Do executes Target.getBrowserContexts against the provided context.
returns:
browserContextIds - An array of browser context ids.
func (GetBrowserContextsParams) MarshalEasyJSON ¶
func (v GetBrowserContextsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetBrowserContextsParams) MarshalJSON ¶
func (v GetBrowserContextsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetBrowserContextsParams) UnmarshalEasyJSON ¶
func (v *GetBrowserContextsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetBrowserContextsParams) UnmarshalJSON ¶
func (v *GetBrowserContextsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetBrowserContextsReturns ¶
type GetBrowserContextsReturns struct {
BrowserContextIds []BrowserContextID `json:"browserContextIds,omitempty"` // An array of browser context ids.
}
GetBrowserContextsReturns return values.
func (GetBrowserContextsReturns) MarshalEasyJSON ¶
func (v GetBrowserContextsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetBrowserContextsReturns) MarshalJSON ¶
func (v GetBrowserContextsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetBrowserContextsReturns) UnmarshalEasyJSON ¶
func (v *GetBrowserContextsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetBrowserContextsReturns) UnmarshalJSON ¶
func (v *GetBrowserContextsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetTargetInfoParams ¶
type GetTargetInfoParams struct {
TargetID ID `json:"targetId"`
}
GetTargetInfoParams returns information about a target.
func GetTargetInfo ¶
func GetTargetInfo(targetID ID) *GetTargetInfoParams
GetTargetInfo returns information about a target.
parameters:
targetID
func (*GetTargetInfoParams) Do ¶
func (p *GetTargetInfoParams) Do(ctxt context.Context, h cdp.Executor) (targetInfo *Info, err error)
Do executes Target.getTargetInfo against the provided context.
returns:
targetInfo
func (GetTargetInfoParams) MarshalEasyJSON ¶
func (v GetTargetInfoParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetTargetInfoParams) MarshalJSON ¶
func (v GetTargetInfoParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetTargetInfoParams) UnmarshalEasyJSON ¶
func (v *GetTargetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetTargetInfoParams) UnmarshalJSON ¶
func (v *GetTargetInfoParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetTargetInfoReturns ¶
type GetTargetInfoReturns struct {
TargetInfo *Info `json:"targetInfo,omitempty"`
}
GetTargetInfoReturns return values.
func (GetTargetInfoReturns) MarshalEasyJSON ¶
func (v GetTargetInfoReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetTargetInfoReturns) MarshalJSON ¶
func (v GetTargetInfoReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetTargetInfoReturns) UnmarshalEasyJSON ¶
func (v *GetTargetInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetTargetInfoReturns) UnmarshalJSON ¶
func (v *GetTargetInfoReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetTargetsParams ¶
type GetTargetsParams struct{}
GetTargetsParams retrieves a list of available targets.
func GetTargets ¶
func GetTargets() *GetTargetsParams
GetTargets retrieves a list of available targets.
func (*GetTargetsParams) Do ¶
func (p *GetTargetsParams) Do(ctxt context.Context, h cdp.Executor) (targetInfos []*Info, err error)
Do executes Target.getTargets against the provided context.
returns:
targetInfos - The list of targets.
func (GetTargetsParams) MarshalEasyJSON ¶
func (v GetTargetsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetTargetsParams) MarshalJSON ¶
func (v GetTargetsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetTargetsParams) UnmarshalEasyJSON ¶
func (v *GetTargetsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetTargetsParams) UnmarshalJSON ¶
func (v *GetTargetsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetTargetsReturns ¶
type GetTargetsReturns struct {
TargetInfos []*Info `json:"targetInfos,omitempty"` // The list of targets.
}
GetTargetsReturns return values.
func (GetTargetsReturns) MarshalEasyJSON ¶
func (v GetTargetsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetTargetsReturns) MarshalJSON ¶
func (v GetTargetsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetTargetsReturns) UnmarshalEasyJSON ¶
func (v *GetTargetsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetTargetsReturns) UnmarshalJSON ¶
func (v *GetTargetsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Info ¶
type Info struct { TargetID ID `json:"targetId"` Type string `json:"type"` Title string `json:"title"` URL string `json:"url"` Attached bool `json:"attached"` // Whether the target has an attached client. OpenerID ID `json:"openerId,omitempty"` // Opener target Id BrowserContextID BrowserContextID `json:"browserContextId,omitempty"` }
Info [no description].
func (Info) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Info) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Info) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Info) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type RemoteLocation ¶
RemoteLocation [no description].
func (RemoteLocation) MarshalEasyJSON ¶
func (v RemoteLocation) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RemoteLocation) MarshalJSON ¶
func (v RemoteLocation) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RemoteLocation) UnmarshalEasyJSON ¶
func (v *RemoteLocation) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RemoteLocation) UnmarshalJSON ¶
func (v *RemoteLocation) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SendMessageToTargetParams ¶
type SendMessageToTargetParams struct { Message string `json:"message"` SessionID SessionID `json:"sessionId,omitempty"` // Identifier of the session. }
SendMessageToTargetParams sends protocol message over session with given id.
func SendMessageToTarget ¶
func SendMessageToTarget(message string) *SendMessageToTargetParams
SendMessageToTarget sends protocol message over session with given id.
parameters:
message
func (*SendMessageToTargetParams) Do ¶
Do executes Target.sendMessageToTarget against the provided context.
func (SendMessageToTargetParams) MarshalEasyJSON ¶
func (v SendMessageToTargetParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SendMessageToTargetParams) MarshalJSON ¶
func (v SendMessageToTargetParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SendMessageToTargetParams) UnmarshalEasyJSON ¶
func (v *SendMessageToTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendMessageToTargetParams) UnmarshalJSON ¶
func (v *SendMessageToTargetParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (SendMessageToTargetParams) WithSessionID ¶
func (p SendMessageToTargetParams) WithSessionID(sessionID SessionID) *SendMessageToTargetParams
WithSessionID identifier of the session.
type SetAutoAttachParams ¶
type SetAutoAttachParams struct { AutoAttach bool `json:"autoAttach"` // Whether to auto-attach to related targets. WaitForDebuggerOnStart bool `json:"waitForDebuggerOnStart"` // Whether to pause new targets when attaching to them. Use Runtime.runIfWaitingForDebugger to run paused targets. }
SetAutoAttachParams controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets.
func SetAutoAttach ¶
func SetAutoAttach(autoAttach bool, waitForDebuggerOnStart bool) *SetAutoAttachParams
SetAutoAttach controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets.
parameters:
autoAttach - Whether to auto-attach to related targets. waitForDebuggerOnStart - Whether to pause new targets when attaching to them. Use Runtime.runIfWaitingForDebugger to run paused targets.
func (SetAutoAttachParams) MarshalEasyJSON ¶
func (v SetAutoAttachParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetAutoAttachParams) MarshalJSON ¶
func (v SetAutoAttachParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetAutoAttachParams) UnmarshalEasyJSON ¶
func (v *SetAutoAttachParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetAutoAttachParams) UnmarshalJSON ¶
func (v *SetAutoAttachParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetDiscoverTargetsParams ¶
type SetDiscoverTargetsParams struct {
Discover bool `json:"discover"` // Whether to discover available targets.
}
SetDiscoverTargetsParams controls whether to discover available targets and notify via targetCreated/targetInfoChanged/targetDestroyed events.
func SetDiscoverTargets ¶
func SetDiscoverTargets(discover bool) *SetDiscoverTargetsParams
SetDiscoverTargets controls whether to discover available targets and notify via targetCreated/targetInfoChanged/targetDestroyed events.
parameters:
discover - Whether to discover available targets.
func (*SetDiscoverTargetsParams) Do ¶
Do executes Target.setDiscoverTargets against the provided context.
func (SetDiscoverTargetsParams) MarshalEasyJSON ¶
func (v SetDiscoverTargetsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetDiscoverTargetsParams) MarshalJSON ¶
func (v SetDiscoverTargetsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetDiscoverTargetsParams) UnmarshalEasyJSON ¶
func (v *SetDiscoverTargetsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetDiscoverTargetsParams) UnmarshalJSON ¶
func (v *SetDiscoverTargetsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetRemoteLocationsParams ¶
type SetRemoteLocationsParams struct {
Locations []*RemoteLocation `json:"locations"` // List of remote locations.
}
SetRemoteLocationsParams enables target discovery for the specified locations, when setDiscoverTargets was set to true.
func SetRemoteLocations ¶
func SetRemoteLocations(locations []*RemoteLocation) *SetRemoteLocationsParams
SetRemoteLocations enables target discovery for the specified locations, when setDiscoverTargets was set to true.
parameters:
locations - List of remote locations.
func (*SetRemoteLocationsParams) Do ¶
Do executes Target.setRemoteLocations against the provided context.
func (SetRemoteLocationsParams) MarshalEasyJSON ¶
func (v SetRemoteLocationsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetRemoteLocationsParams) MarshalJSON ¶
func (v SetRemoteLocationsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetRemoteLocationsParams) UnmarshalEasyJSON ¶
func (v *SetRemoteLocationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetRemoteLocationsParams) UnmarshalJSON ¶
func (v *SetRemoteLocationsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface