Documentation ¶
Overview ¶
Package serviceworker provides the Chrome DevTools Protocol commands, types, and events for the ServiceWorker domain.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type DeliverPushMessageParams
- func (p *DeliverPushMessageParams) Do(ctx context.Context) (err error)
- func (v DeliverPushMessageParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DeliverPushMessageParams) MarshalJSON() ([]byte, error)
- func (v *DeliverPushMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DeliverPushMessageParams) UnmarshalJSON(data []byte) error
- type DisableParams
- type DispatchPeriodicSyncEventParams
- func (p *DispatchPeriodicSyncEventParams) Do(ctx context.Context) (err error)
- func (v DispatchPeriodicSyncEventParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DispatchPeriodicSyncEventParams) MarshalJSON() ([]byte, error)
- func (v *DispatchPeriodicSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DispatchPeriodicSyncEventParams) UnmarshalJSON(data []byte) error
- type DispatchSyncEventParams
- func (p *DispatchSyncEventParams) Do(ctx context.Context) (err error)
- func (v DispatchSyncEventParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DispatchSyncEventParams) MarshalJSON() ([]byte, error)
- func (v *DispatchSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DispatchSyncEventParams) UnmarshalJSON(data []byte) error
- type EnableParams
- type ErrorMessage
- type EventWorkerErrorReported
- type EventWorkerRegistrationUpdated
- type EventWorkerVersionUpdated
- type InspectWorkerParams
- func (p *InspectWorkerParams) Do(ctx context.Context) (err error)
- func (v InspectWorkerParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v InspectWorkerParams) MarshalJSON() ([]byte, error)
- func (v *InspectWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *InspectWorkerParams) UnmarshalJSON(data []byte) error
- type Registration
- type RegistrationID
- type SetForceUpdateOnPageLoadParams
- func (p *SetForceUpdateOnPageLoadParams) Do(ctx context.Context) (err error)
- func (v SetForceUpdateOnPageLoadParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetForceUpdateOnPageLoadParams) MarshalJSON() ([]byte, error)
- func (v *SetForceUpdateOnPageLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetForceUpdateOnPageLoadParams) UnmarshalJSON(data []byte) error
- type SkipWaitingParams
- func (p *SkipWaitingParams) Do(ctx context.Context) (err error)
- func (v SkipWaitingParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SkipWaitingParams) MarshalJSON() ([]byte, error)
- func (v *SkipWaitingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SkipWaitingParams) UnmarshalJSON(data []byte) error
- type StartWorkerParams
- func (p *StartWorkerParams) Do(ctx context.Context) (err error)
- func (v StartWorkerParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StartWorkerParams) MarshalJSON() ([]byte, error)
- func (v *StartWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StartWorkerParams) UnmarshalJSON(data []byte) error
- type StopAllWorkersParams
- func (p *StopAllWorkersParams) Do(ctx context.Context) (err error)
- func (v StopAllWorkersParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StopAllWorkersParams) MarshalJSON() ([]byte, error)
- func (v *StopAllWorkersParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StopAllWorkersParams) UnmarshalJSON(data []byte) error
- type StopWorkerParams
- func (p *StopWorkerParams) Do(ctx context.Context) (err error)
- func (v StopWorkerParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StopWorkerParams) MarshalJSON() ([]byte, error)
- func (v *StopWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StopWorkerParams) UnmarshalJSON(data []byte) error
- type UnregisterParams
- func (p *UnregisterParams) Do(ctx context.Context) (err error)
- func (v UnregisterParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v UnregisterParams) MarshalJSON() ([]byte, error)
- func (v *UnregisterParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UnregisterParams) UnmarshalJSON(data []byte) error
- type UpdateRegistrationParams
- func (p *UpdateRegistrationParams) Do(ctx context.Context) (err error)
- func (v UpdateRegistrationParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v UpdateRegistrationParams) MarshalJSON() ([]byte, error)
- func (v *UpdateRegistrationParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UpdateRegistrationParams) UnmarshalJSON(data []byte) error
- type Version
- type VersionRunningStatus
- func (t VersionRunningStatus) MarshalEasyJSON(out *jwriter.Writer)
- func (t VersionRunningStatus) MarshalJSON() ([]byte, error)
- func (t VersionRunningStatus) String() string
- func (t *VersionRunningStatus) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *VersionRunningStatus) UnmarshalJSON(buf []byte) error
- type VersionStatus
Constants ¶
const ( CommandDeliverPushMessage = "ServiceWorker.deliverPushMessage" CommandDisable = "ServiceWorker.disable" CommandDispatchSyncEvent = "ServiceWorker.dispatchSyncEvent" CommandDispatchPeriodicSyncEvent = "ServiceWorker.dispatchPeriodicSyncEvent" CommandEnable = "ServiceWorker.enable" CommandInspectWorker = "ServiceWorker.inspectWorker" CommandSetForceUpdateOnPageLoad = "ServiceWorker.setForceUpdateOnPageLoad" CommandSkipWaiting = "ServiceWorker.skipWaiting" CommandStartWorker = "ServiceWorker.startWorker" CommandStopAllWorkers = "ServiceWorker.stopAllWorkers" CommandStopWorker = "ServiceWorker.stopWorker" CommandUnregister = "ServiceWorker.unregister" CommandUpdateRegistration = "ServiceWorker.updateRegistration" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeliverPushMessageParams ¶
type DeliverPushMessageParams struct { Origin string `json:"origin"` RegistrationID RegistrationID `json:"registrationId"` Data string `json:"data"` }
DeliverPushMessageParams [no description].
func DeliverPushMessage ¶
func DeliverPushMessage(origin string, registrationID RegistrationID, data string) *DeliverPushMessageParams
DeliverPushMessage [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-deliverPushMessage
parameters:
origin registrationID data
func (*DeliverPushMessageParams) Do ¶
func (p *DeliverPushMessageParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.deliverPushMessage against the provided context.
func (DeliverPushMessageParams) MarshalEasyJSON ¶
func (v DeliverPushMessageParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DeliverPushMessageParams) MarshalJSON ¶
func (v DeliverPushMessageParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DeliverPushMessageParams) UnmarshalEasyJSON ¶
func (v *DeliverPushMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DeliverPushMessageParams) UnmarshalJSON ¶
func (v *DeliverPushMessageParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DisableParams ¶
type DisableParams struct{}
DisableParams [no description].
func Disable ¶
func Disable() *DisableParams
Disable [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-disable
func (*DisableParams) Do ¶
func (p *DisableParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.disable against the provided context.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DispatchPeriodicSyncEventParams ¶
type DispatchPeriodicSyncEventParams struct { Origin string `json:"origin"` RegistrationID RegistrationID `json:"registrationId"` Tag string `json:"tag"` }
DispatchPeriodicSyncEventParams [no description].
func DispatchPeriodicSyncEvent ¶
func DispatchPeriodicSyncEvent(origin string, registrationID RegistrationID, tag string) *DispatchPeriodicSyncEventParams
DispatchPeriodicSyncEvent [no description].
parameters:
origin registrationID tag
func (*DispatchPeriodicSyncEventParams) Do ¶
func (p *DispatchPeriodicSyncEventParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.dispatchPeriodicSyncEvent against the provided context.
func (DispatchPeriodicSyncEventParams) MarshalEasyJSON ¶
func (v DispatchPeriodicSyncEventParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DispatchPeriodicSyncEventParams) MarshalJSON ¶
func (v DispatchPeriodicSyncEventParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DispatchPeriodicSyncEventParams) UnmarshalEasyJSON ¶
func (v *DispatchPeriodicSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DispatchPeriodicSyncEventParams) UnmarshalJSON ¶
func (v *DispatchPeriodicSyncEventParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DispatchSyncEventParams ¶
type DispatchSyncEventParams struct { Origin string `json:"origin"` RegistrationID RegistrationID `json:"registrationId"` Tag string `json:"tag"` LastChance bool `json:"lastChance"` }
DispatchSyncEventParams [no description].
func DispatchSyncEvent ¶
func DispatchSyncEvent(origin string, registrationID RegistrationID, tag string, lastChance bool) *DispatchSyncEventParams
DispatchSyncEvent [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-dispatchSyncEvent
parameters:
origin registrationID tag lastChance
func (*DispatchSyncEventParams) Do ¶
func (p *DispatchSyncEventParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.dispatchSyncEvent against the provided context.
func (DispatchSyncEventParams) MarshalEasyJSON ¶
func (v DispatchSyncEventParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DispatchSyncEventParams) MarshalJSON ¶
func (v DispatchSyncEventParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DispatchSyncEventParams) UnmarshalEasyJSON ¶
func (v *DispatchSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DispatchSyncEventParams) UnmarshalJSON ¶
func (v *DispatchSyncEventParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams ¶
type EnableParams struct{}
EnableParams [no description].
func Enable ¶
func Enable() *EnableParams
Enable [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-enable
func (*EnableParams) Do ¶
func (p *EnableParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.enable against the provided context.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ErrorMessage ¶
type ErrorMessage struct { ErrorMessage string `json:"errorMessage"` RegistrationID RegistrationID `json:"registrationId"` VersionID string `json:"versionId"` SourceURL string `json:"sourceURL"` LineNumber int64 `json:"lineNumber"` ColumnNumber int64 `json:"columnNumber"` }
ErrorMessage serviceWorker error message.
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#type-ServiceWorkerErrorMessage
func (ErrorMessage) MarshalEasyJSON ¶
func (v ErrorMessage) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ErrorMessage) MarshalJSON ¶
func (v ErrorMessage) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ErrorMessage) UnmarshalEasyJSON ¶
func (v *ErrorMessage) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ErrorMessage) UnmarshalJSON ¶
func (v *ErrorMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventWorkerErrorReported ¶
type EventWorkerErrorReported struct {
ErrorMessage *ErrorMessage `json:"errorMessage"`
}
EventWorkerErrorReported [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#event-workerErrorReported
func (EventWorkerErrorReported) MarshalEasyJSON ¶
func (v EventWorkerErrorReported) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventWorkerErrorReported) MarshalJSON ¶
func (v EventWorkerErrorReported) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventWorkerErrorReported) UnmarshalEasyJSON ¶
func (v *EventWorkerErrorReported) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventWorkerErrorReported) UnmarshalJSON ¶
func (v *EventWorkerErrorReported) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventWorkerRegistrationUpdated ¶
type EventWorkerRegistrationUpdated struct {
Registrations []*Registration `json:"registrations"`
}
EventWorkerRegistrationUpdated [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#event-workerRegistrationUpdated
func (EventWorkerRegistrationUpdated) MarshalEasyJSON ¶
func (v EventWorkerRegistrationUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventWorkerRegistrationUpdated) MarshalJSON ¶
func (v EventWorkerRegistrationUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventWorkerRegistrationUpdated) UnmarshalEasyJSON ¶
func (v *EventWorkerRegistrationUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventWorkerRegistrationUpdated) UnmarshalJSON ¶
func (v *EventWorkerRegistrationUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventWorkerVersionUpdated ¶
type EventWorkerVersionUpdated struct {
Versions []*Version `json:"versions"`
}
EventWorkerVersionUpdated [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#event-workerVersionUpdated
func (EventWorkerVersionUpdated) MarshalEasyJSON ¶
func (v EventWorkerVersionUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventWorkerVersionUpdated) MarshalJSON ¶
func (v EventWorkerVersionUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventWorkerVersionUpdated) UnmarshalEasyJSON ¶
func (v *EventWorkerVersionUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventWorkerVersionUpdated) UnmarshalJSON ¶
func (v *EventWorkerVersionUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type InspectWorkerParams ¶
type InspectWorkerParams struct {
VersionID string `json:"versionId"`
}
InspectWorkerParams [no description].
func InspectWorker ¶
func InspectWorker(versionID string) *InspectWorkerParams
InspectWorker [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-inspectWorker
parameters:
versionID
func (*InspectWorkerParams) Do ¶
func (p *InspectWorkerParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.inspectWorker against the provided context.
func (InspectWorkerParams) MarshalEasyJSON ¶
func (v InspectWorkerParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (InspectWorkerParams) MarshalJSON ¶
func (v InspectWorkerParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*InspectWorkerParams) UnmarshalEasyJSON ¶
func (v *InspectWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*InspectWorkerParams) UnmarshalJSON ¶
func (v *InspectWorkerParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Registration ¶
type Registration struct { RegistrationID RegistrationID `json:"registrationId"` ScopeURL string `json:"scopeURL"` IsDeleted bool `json:"isDeleted"` }
Registration serviceWorker registration.
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#type-ServiceWorkerRegistration
func (Registration) MarshalEasyJSON ¶
func (v Registration) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Registration) MarshalJSON ¶
func (v Registration) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Registration) UnmarshalEasyJSON ¶
func (v *Registration) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Registration) UnmarshalJSON ¶
func (v *Registration) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RegistrationID ¶
type RegistrationID string
RegistrationID [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#type-RegistrationID
func (RegistrationID) String ¶
func (t RegistrationID) String() string
String returns the RegistrationID as string value.
type SetForceUpdateOnPageLoadParams ¶
type SetForceUpdateOnPageLoadParams struct {
ForceUpdateOnPageLoad bool `json:"forceUpdateOnPageLoad"`
}
SetForceUpdateOnPageLoadParams [no description].
func SetForceUpdateOnPageLoad ¶
func SetForceUpdateOnPageLoad(forceUpdateOnPageLoad bool) *SetForceUpdateOnPageLoadParams
SetForceUpdateOnPageLoad [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-setForceUpdateOnPageLoad
parameters:
forceUpdateOnPageLoad
func (*SetForceUpdateOnPageLoadParams) Do ¶
func (p *SetForceUpdateOnPageLoadParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.setForceUpdateOnPageLoad against the provided context.
func (SetForceUpdateOnPageLoadParams) MarshalEasyJSON ¶
func (v SetForceUpdateOnPageLoadParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetForceUpdateOnPageLoadParams) MarshalJSON ¶
func (v SetForceUpdateOnPageLoadParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetForceUpdateOnPageLoadParams) UnmarshalEasyJSON ¶
func (v *SetForceUpdateOnPageLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetForceUpdateOnPageLoadParams) UnmarshalJSON ¶
func (v *SetForceUpdateOnPageLoadParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SkipWaitingParams ¶
type SkipWaitingParams struct {
ScopeURL string `json:"scopeURL"`
}
SkipWaitingParams [no description].
func SkipWaiting ¶
func SkipWaiting(scopeURL string) *SkipWaitingParams
SkipWaiting [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-skipWaiting
parameters:
scopeURL
func (*SkipWaitingParams) Do ¶
func (p *SkipWaitingParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.skipWaiting against the provided context.
func (SkipWaitingParams) MarshalEasyJSON ¶
func (v SkipWaitingParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SkipWaitingParams) MarshalJSON ¶
func (v SkipWaitingParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SkipWaitingParams) UnmarshalEasyJSON ¶
func (v *SkipWaitingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SkipWaitingParams) UnmarshalJSON ¶
func (v *SkipWaitingParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StartWorkerParams ¶
type StartWorkerParams struct {
ScopeURL string `json:"scopeURL"`
}
StartWorkerParams [no description].
func StartWorker ¶
func StartWorker(scopeURL string) *StartWorkerParams
StartWorker [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-startWorker
parameters:
scopeURL
func (*StartWorkerParams) Do ¶
func (p *StartWorkerParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.startWorker against the provided context.
func (StartWorkerParams) MarshalEasyJSON ¶
func (v StartWorkerParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StartWorkerParams) MarshalJSON ¶
func (v StartWorkerParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StartWorkerParams) UnmarshalEasyJSON ¶
func (v *StartWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StartWorkerParams) UnmarshalJSON ¶
func (v *StartWorkerParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StopAllWorkersParams ¶
type StopAllWorkersParams struct{}
StopAllWorkersParams [no description].
func StopAllWorkers ¶
func StopAllWorkers() *StopAllWorkersParams
StopAllWorkers [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-stopAllWorkers
func (*StopAllWorkersParams) Do ¶
func (p *StopAllWorkersParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.stopAllWorkers against the provided context.
func (StopAllWorkersParams) MarshalEasyJSON ¶
func (v StopAllWorkersParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StopAllWorkersParams) MarshalJSON ¶
func (v StopAllWorkersParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StopAllWorkersParams) UnmarshalEasyJSON ¶
func (v *StopAllWorkersParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StopAllWorkersParams) UnmarshalJSON ¶
func (v *StopAllWorkersParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StopWorkerParams ¶
type StopWorkerParams struct {
VersionID string `json:"versionId"`
}
StopWorkerParams [no description].
func StopWorker ¶
func StopWorker(versionID string) *StopWorkerParams
StopWorker [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-stopWorker
parameters:
versionID
func (*StopWorkerParams) Do ¶
func (p *StopWorkerParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.stopWorker against the provided context.
func (StopWorkerParams) MarshalEasyJSON ¶
func (v StopWorkerParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StopWorkerParams) MarshalJSON ¶
func (v StopWorkerParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StopWorkerParams) UnmarshalEasyJSON ¶
func (v *StopWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StopWorkerParams) UnmarshalJSON ¶
func (v *StopWorkerParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type UnregisterParams ¶
type UnregisterParams struct {
ScopeURL string `json:"scopeURL"`
}
UnregisterParams [no description].
func Unregister ¶
func Unregister(scopeURL string) *UnregisterParams
Unregister [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-unregister
parameters:
scopeURL
func (*UnregisterParams) Do ¶
func (p *UnregisterParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.unregister against the provided context.
func (UnregisterParams) MarshalEasyJSON ¶
func (v UnregisterParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (UnregisterParams) MarshalJSON ¶
func (v UnregisterParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*UnregisterParams) UnmarshalEasyJSON ¶
func (v *UnregisterParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*UnregisterParams) UnmarshalJSON ¶
func (v *UnregisterParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type UpdateRegistrationParams ¶
type UpdateRegistrationParams struct {
ScopeURL string `json:"scopeURL"`
}
UpdateRegistrationParams [no description].
func UpdateRegistration ¶
func UpdateRegistration(scopeURL string) *UpdateRegistrationParams
UpdateRegistration [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-updateRegistration
parameters:
scopeURL
func (*UpdateRegistrationParams) Do ¶
func (p *UpdateRegistrationParams) Do(ctx context.Context) (err error)
Do executes ServiceWorker.updateRegistration against the provided context.
func (UpdateRegistrationParams) MarshalEasyJSON ¶
func (v UpdateRegistrationParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (UpdateRegistrationParams) MarshalJSON ¶
func (v UpdateRegistrationParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*UpdateRegistrationParams) UnmarshalEasyJSON ¶
func (v *UpdateRegistrationParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*UpdateRegistrationParams) UnmarshalJSON ¶
func (v *UpdateRegistrationParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Version ¶
type Version struct { VersionID string `json:"versionId"` RegistrationID RegistrationID `json:"registrationId"` ScriptURL string `json:"scriptURL"` RunningStatus VersionRunningStatus `json:"runningStatus"` Status VersionStatus `json:"status"` ScriptLastModified float64 `json:"scriptLastModified,omitempty"` // The Last-Modified header value of the main script. ScriptResponseTime float64 `json:"scriptResponseTime,omitempty"` // The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated. ControlledClients []target.ID `json:"controlledClients,omitempty"` TargetID target.ID `json:"targetId,omitempty"` RouterRules string `json:"routerRules,omitempty"` }
Version serviceWorker version.
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#type-ServiceWorkerVersion
func (Version) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Version) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Version) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Version) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type VersionRunningStatus ¶
type VersionRunningStatus string
VersionRunningStatus [no description].
const ( VersionRunningStatusStopped VersionRunningStatus = "stopped" VersionRunningStatusStarting VersionRunningStatus = "starting" VersionRunningStatusRunning VersionRunningStatus = "running" VersionRunningStatusStopping VersionRunningStatus = "stopping" )
VersionRunningStatus values.
func (VersionRunningStatus) MarshalEasyJSON ¶
func (t VersionRunningStatus) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (VersionRunningStatus) MarshalJSON ¶
func (t VersionRunningStatus) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (VersionRunningStatus) String ¶
func (t VersionRunningStatus) String() string
String returns the VersionRunningStatus as string value.
func (*VersionRunningStatus) UnmarshalEasyJSON ¶
func (t *VersionRunningStatus) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*VersionRunningStatus) UnmarshalJSON ¶
func (t *VersionRunningStatus) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type VersionStatus ¶
type VersionStatus string
VersionStatus [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#type-ServiceWorkerVersionStatus
const ( VersionStatusNew VersionStatus = "new" VersionStatusInstalling VersionStatus = "installing" VersionStatusInstalled VersionStatus = "installed" VersionStatusActivating VersionStatus = "activating" VersionStatusActivated VersionStatus = "activated" VersionStatusRedundant VersionStatus = "redundant" )
VersionStatus values.
func (VersionStatus) MarshalEasyJSON ¶
func (t VersionStatus) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (VersionStatus) MarshalJSON ¶
func (t VersionStatus) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (VersionStatus) String ¶
func (t VersionStatus) String() string
String returns the VersionStatus as string value.
func (*VersionStatus) UnmarshalEasyJSON ¶
func (t *VersionStatus) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*VersionStatus) UnmarshalJSON ¶
func (t *VersionStatus) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.