cdproto: github.com/chromedp/cdproto/serviceworker Index | Files

package serviceworker

import "github.com/chromedp/cdproto/serviceworker"

Package serviceworker provides the Chrome DevTools Protocol commands, types, and events for the ServiceWorker domain.

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go events.go serviceworker.go types.go

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.

type DeliverPushMessageParams Uses

type DeliverPushMessageParams struct {
    Origin         string         `json:"origin"`
    RegistrationID RegistrationID `json:"registrationId"`
    Data           string         `json:"data"`
}

DeliverPushMessageParams [no description].

func DeliverPushMessage Uses

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 Uses

func (p *DeliverPushMessageParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.deliverPushMessage against the provided context.

func (DeliverPushMessageParams) MarshalEasyJSON Uses

func (v DeliverPushMessageParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DeliverPushMessageParams) MarshalJSON Uses

func (v DeliverPushMessageParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DeliverPushMessageParams) UnmarshalEasyJSON Uses

func (v *DeliverPushMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DeliverPushMessageParams) UnmarshalJSON Uses

func (v *DeliverPushMessageParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

DisableParams [no description].

func Disable Uses

func Disable() *DisableParams

Disable [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DispatchPeriodicSyncEventParams Uses

type DispatchPeriodicSyncEventParams struct {
    Origin         string         `json:"origin"`
    RegistrationID RegistrationID `json:"registrationId"`
    Tag            string         `json:"tag"`
}

DispatchPeriodicSyncEventParams [no description].

func DispatchPeriodicSyncEvent Uses

func DispatchPeriodicSyncEvent(origin string, registrationID RegistrationID, tag string) *DispatchPeriodicSyncEventParams

DispatchPeriodicSyncEvent [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-dispatchPeriodicSyncEvent

parameters:

origin
registrationID
tag

func (*DispatchPeriodicSyncEventParams) Do Uses

func (p *DispatchPeriodicSyncEventParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.dispatchPeriodicSyncEvent against the provided context.

func (DispatchPeriodicSyncEventParams) MarshalEasyJSON Uses

func (v DispatchPeriodicSyncEventParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DispatchPeriodicSyncEventParams) MarshalJSON Uses

func (v DispatchPeriodicSyncEventParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DispatchPeriodicSyncEventParams) UnmarshalEasyJSON Uses

func (v *DispatchPeriodicSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DispatchPeriodicSyncEventParams) UnmarshalJSON Uses

func (v *DispatchPeriodicSyncEventParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DispatchSyncEventParams Uses

type DispatchSyncEventParams struct {
    Origin         string         `json:"origin"`
    RegistrationID RegistrationID `json:"registrationId"`
    Tag            string         `json:"tag"`
    LastChance     bool           `json:"lastChance"`
}

DispatchSyncEventParams [no description].

func DispatchSyncEvent Uses

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 Uses

func (p *DispatchSyncEventParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.dispatchSyncEvent against the provided context.

func (DispatchSyncEventParams) MarshalEasyJSON Uses

func (v DispatchSyncEventParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DispatchSyncEventParams) MarshalJSON Uses

func (v DispatchSyncEventParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DispatchSyncEventParams) UnmarshalEasyJSON Uses

func (v *DispatchSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DispatchSyncEventParams) UnmarshalJSON Uses

func (v *DispatchSyncEventParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams [no description].

func Enable Uses

func Enable() *EnableParams

Enable [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ErrorMessage Uses

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 Uses

func (v ErrorMessage) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ErrorMessage) MarshalJSON Uses

func (v ErrorMessage) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ErrorMessage) UnmarshalEasyJSON Uses

func (v *ErrorMessage) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ErrorMessage) UnmarshalJSON Uses

func (v *ErrorMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWorkerErrorReported Uses

type EventWorkerErrorReported struct {
    ErrorMessage *ErrorMessage `json:"errorMessage"`
}

EventWorkerErrorReported [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#event-workerErrorReported

func (EventWorkerErrorReported) MarshalEasyJSON Uses

func (v EventWorkerErrorReported) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWorkerErrorReported) MarshalJSON Uses

func (v EventWorkerErrorReported) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWorkerErrorReported) UnmarshalEasyJSON Uses

func (v *EventWorkerErrorReported) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWorkerErrorReported) UnmarshalJSON Uses

func (v *EventWorkerErrorReported) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWorkerRegistrationUpdated Uses

type EventWorkerRegistrationUpdated struct {
    Registrations []*Registration `json:"registrations"`
}

EventWorkerRegistrationUpdated [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#event-workerRegistrationUpdated

func (EventWorkerRegistrationUpdated) MarshalEasyJSON Uses

func (v EventWorkerRegistrationUpdated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWorkerRegistrationUpdated) MarshalJSON Uses

func (v EventWorkerRegistrationUpdated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWorkerRegistrationUpdated) UnmarshalEasyJSON Uses

func (v *EventWorkerRegistrationUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWorkerRegistrationUpdated) UnmarshalJSON Uses

func (v *EventWorkerRegistrationUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWorkerVersionUpdated Uses

type EventWorkerVersionUpdated struct {
    Versions []*Version `json:"versions"`
}

EventWorkerVersionUpdated [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#event-workerVersionUpdated

func (EventWorkerVersionUpdated) MarshalEasyJSON Uses

func (v EventWorkerVersionUpdated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWorkerVersionUpdated) MarshalJSON Uses

func (v EventWorkerVersionUpdated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWorkerVersionUpdated) UnmarshalEasyJSON Uses

func (v *EventWorkerVersionUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWorkerVersionUpdated) UnmarshalJSON Uses

func (v *EventWorkerVersionUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type InspectWorkerParams Uses

type InspectWorkerParams struct {
    VersionID string `json:"versionId"`
}

InspectWorkerParams [no description].

func InspectWorker Uses

func InspectWorker(versionID string) *InspectWorkerParams

InspectWorker [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-inspectWorker

parameters:

versionID

func (*InspectWorkerParams) Do Uses

func (p *InspectWorkerParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.inspectWorker against the provided context.

func (InspectWorkerParams) MarshalEasyJSON Uses

func (v InspectWorkerParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (InspectWorkerParams) MarshalJSON Uses

func (v InspectWorkerParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*InspectWorkerParams) UnmarshalEasyJSON Uses

func (v *InspectWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*InspectWorkerParams) UnmarshalJSON Uses

func (v *InspectWorkerParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Registration Uses

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 Uses

func (v Registration) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Registration) MarshalJSON Uses

func (v Registration) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Registration) UnmarshalEasyJSON Uses

func (v *Registration) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Registration) UnmarshalJSON Uses

func (v *Registration) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RegistrationID Uses

type RegistrationID string

RegistrationID [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#type-RegistrationID

func (RegistrationID) String Uses

func (t RegistrationID) String() string

String returns the RegistrationID as string value.

type SetForceUpdateOnPageLoadParams Uses

type SetForceUpdateOnPageLoadParams struct {
    ForceUpdateOnPageLoad bool `json:"forceUpdateOnPageLoad"`
}

SetForceUpdateOnPageLoadParams [no description].

func SetForceUpdateOnPageLoad Uses

func SetForceUpdateOnPageLoad(forceUpdateOnPageLoad bool) *SetForceUpdateOnPageLoadParams

SetForceUpdateOnPageLoad [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-setForceUpdateOnPageLoad

parameters:

forceUpdateOnPageLoad

func (*SetForceUpdateOnPageLoadParams) Do Uses

func (p *SetForceUpdateOnPageLoadParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.setForceUpdateOnPageLoad against the provided context.

func (SetForceUpdateOnPageLoadParams) MarshalEasyJSON Uses

func (v SetForceUpdateOnPageLoadParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetForceUpdateOnPageLoadParams) MarshalJSON Uses

func (v SetForceUpdateOnPageLoadParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetForceUpdateOnPageLoadParams) UnmarshalEasyJSON Uses

func (v *SetForceUpdateOnPageLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetForceUpdateOnPageLoadParams) UnmarshalJSON Uses

func (v *SetForceUpdateOnPageLoadParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SkipWaitingParams Uses

type SkipWaitingParams struct {
    ScopeURL string `json:"scopeURL"`
}

SkipWaitingParams [no description].

func SkipWaiting Uses

func SkipWaiting(scopeURL string) *SkipWaitingParams

SkipWaiting [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-skipWaiting

parameters:

scopeURL

func (*SkipWaitingParams) Do Uses

func (p *SkipWaitingParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.skipWaiting against the provided context.

func (SkipWaitingParams) MarshalEasyJSON Uses

func (v SkipWaitingParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SkipWaitingParams) MarshalJSON Uses

func (v SkipWaitingParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SkipWaitingParams) UnmarshalEasyJSON Uses

func (v *SkipWaitingParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SkipWaitingParams) UnmarshalJSON Uses

func (v *SkipWaitingParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StartWorkerParams Uses

type StartWorkerParams struct {
    ScopeURL string `json:"scopeURL"`
}

StartWorkerParams [no description].

func StartWorker Uses

func StartWorker(scopeURL string) *StartWorkerParams

StartWorker [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-startWorker

parameters:

scopeURL

func (*StartWorkerParams) Do Uses

func (p *StartWorkerParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.startWorker against the provided context.

func (StartWorkerParams) MarshalEasyJSON Uses

func (v StartWorkerParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartWorkerParams) MarshalJSON Uses

func (v StartWorkerParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StartWorkerParams) UnmarshalEasyJSON Uses

func (v *StartWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartWorkerParams) UnmarshalJSON Uses

func (v *StartWorkerParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StopAllWorkersParams Uses

type StopAllWorkersParams struct{}

StopAllWorkersParams [no description].

func StopAllWorkers Uses

func StopAllWorkers() *StopAllWorkersParams

StopAllWorkers [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-stopAllWorkers

func (*StopAllWorkersParams) Do Uses

func (p *StopAllWorkersParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.stopAllWorkers against the provided context.

func (StopAllWorkersParams) MarshalEasyJSON Uses

func (v StopAllWorkersParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopAllWorkersParams) MarshalJSON Uses

func (v StopAllWorkersParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopAllWorkersParams) UnmarshalEasyJSON Uses

func (v *StopAllWorkersParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopAllWorkersParams) UnmarshalJSON Uses

func (v *StopAllWorkersParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StopWorkerParams Uses

type StopWorkerParams struct {
    VersionID string `json:"versionId"`
}

StopWorkerParams [no description].

func StopWorker Uses

func StopWorker(versionID string) *StopWorkerParams

StopWorker [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-stopWorker

parameters:

versionID

func (*StopWorkerParams) Do Uses

func (p *StopWorkerParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.stopWorker against the provided context.

func (StopWorkerParams) MarshalEasyJSON Uses

func (v StopWorkerParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopWorkerParams) MarshalJSON Uses

func (v StopWorkerParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopWorkerParams) UnmarshalEasyJSON Uses

func (v *StopWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopWorkerParams) UnmarshalJSON Uses

func (v *StopWorkerParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UnregisterParams Uses

type UnregisterParams struct {
    ScopeURL string `json:"scopeURL"`
}

UnregisterParams [no description].

func Unregister Uses

func Unregister(scopeURL string) *UnregisterParams

Unregister [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-unregister

parameters:

scopeURL

func (*UnregisterParams) Do Uses

func (p *UnregisterParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.unregister against the provided context.

func (UnregisterParams) MarshalEasyJSON Uses

func (v UnregisterParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UnregisterParams) MarshalJSON Uses

func (v UnregisterParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UnregisterParams) UnmarshalEasyJSON Uses

func (v *UnregisterParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UnregisterParams) UnmarshalJSON Uses

func (v *UnregisterParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UpdateRegistrationParams Uses

type UpdateRegistrationParams struct {
    ScopeURL string `json:"scopeURL"`
}

UpdateRegistrationParams [no description].

func UpdateRegistration Uses

func UpdateRegistration(scopeURL string) *UpdateRegistrationParams

UpdateRegistration [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#method-updateRegistration

parameters:

scopeURL

func (*UpdateRegistrationParams) Do Uses

func (p *UpdateRegistrationParams) Do(ctx context.Context) (err error)

Do executes ServiceWorker.updateRegistration against the provided context.

func (UpdateRegistrationParams) MarshalEasyJSON Uses

func (v UpdateRegistrationParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UpdateRegistrationParams) MarshalJSON Uses

func (v UpdateRegistrationParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UpdateRegistrationParams) UnmarshalEasyJSON Uses

func (v *UpdateRegistrationParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UpdateRegistrationParams) UnmarshalJSON Uses

func (v *UpdateRegistrationParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Version Uses

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"`
}

Version serviceWorker version.

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#type-ServiceWorkerVersion

func (Version) MarshalEasyJSON Uses

func (v Version) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Version) MarshalJSON Uses

func (v Version) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Version) UnmarshalEasyJSON Uses

func (v *Version) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Version) UnmarshalJSON Uses

func (v *Version) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type VersionRunningStatus Uses

type VersionRunningStatus string

VersionRunningStatus [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/ServiceWorker#type-ServiceWorkerVersionRunningStatus

const (
    VersionRunningStatusStopped  VersionRunningStatus = "stopped"
    VersionRunningStatusStarting VersionRunningStatus = "starting"
    VersionRunningStatusRunning  VersionRunningStatus = "running"
    VersionRunningStatusStopping VersionRunningStatus = "stopping"
)

VersionRunningStatus values.

func (VersionRunningStatus) MarshalEasyJSON Uses

func (t VersionRunningStatus) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (VersionRunningStatus) MarshalJSON Uses

func (t VersionRunningStatus) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (VersionRunningStatus) String Uses

func (t VersionRunningStatus) String() string

String returns the VersionRunningStatus as string value.

func (*VersionRunningStatus) UnmarshalEasyJSON Uses

func (t *VersionRunningStatus) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*VersionRunningStatus) UnmarshalJSON Uses

func (t *VersionRunningStatus) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type VersionStatus Uses

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 Uses

func (t VersionStatus) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (VersionStatus) MarshalJSON Uses

func (t VersionStatus) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (VersionStatus) String Uses

func (t VersionStatus) String() string

String returns the VersionStatus as string value.

func (*VersionStatus) UnmarshalEasyJSON Uses

func (t *VersionStatus) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*VersionStatus) UnmarshalJSON Uses

func (t *VersionStatus) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

Package serviceworker imports 8 packages (graph) and is imported by 4 packages. Updated 2021-01-07. Refresh now. Tools for package owners.