package backgroundservice

Import Path
	github.com/chromedp/cdproto/backgroundservice (on go.dev)

Dependency Relation
	imports 8 packages, and imported by one package

Involved Source Files Package backgroundservice provides the Chrome DevTools Protocol commands, types, and events for the BackgroundService domain. Defines events for background web platform features. Generated by the cdproto-gen command. easyjson.go events.go types.go
Package-Level Type Names (total 9)
/* sort by: | */
ClearEventsParams clears all stored data for the service. Service ServiceName Do executes BackgroundService.clearEvents against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *ClearEventsParams : github.com/chromedp/chromedp.Action *ClearEventsParams : github.com/chromedp/chromedp.CallAction *ClearEventsParams : github.com/chromedp/chromedp.EmulateAction *ClearEventsParams : github.com/chromedp/chromedp.EvaluateAction *ClearEventsParams : github.com/chromedp/chromedp.KeyAction *ClearEventsParams : github.com/chromedp/chromedp.MouseAction *ClearEventsParams : github.com/chromedp/chromedp.NavigateAction *ClearEventsParams : github.com/chromedp/chromedp.PollAction *ClearEventsParams : github.com/chromedp/chromedp.QueryAction ClearEventsParams : github.com/goccy/go-json.Marshaler *ClearEventsParams : github.com/goccy/go-json.Unmarshaler ClearEventsParams : github.com/mailru/easyjson.Marshaler *ClearEventsParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ClearEventsParams : github.com/mailru/easyjson.Unmarshaler ClearEventsParams : encoding/json.Marshaler *ClearEventsParams : encoding/json.Unmarshaler func ClearEvents(service ServiceName) *ClearEventsParams
Event [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/BackgroundService#type-BackgroundServiceEvent // A list of event-specific information. // A description of the event. // An identifier that groups related events together. // The origin this event belongs to. // The Background Service this event belongs to. // The Service Worker ID that initiated the event. // Storage key this event belongs to. // Timestamp of the event (in seconds). MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface Event : github.com/goccy/go-json.Marshaler *Event : github.com/goccy/go-json.Unmarshaler Event : github.com/mailru/easyjson.Marshaler *Event : github.com/mailru/easyjson.MarshalerUnmarshaler *Event : github.com/mailru/easyjson.Unmarshaler Event : encoding/json.Marshaler *Event : encoding/json.Unmarshaler
EventBackgroundServiceEventReceived called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording. See: https://chromedevtools.github.io/devtools-protocol/tot/BackgroundService#event-backgroundServiceEventReceived BackgroundServiceEvent *Event MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventBackgroundServiceEventReceived : github.com/goccy/go-json.Marshaler *EventBackgroundServiceEventReceived : github.com/goccy/go-json.Unmarshaler EventBackgroundServiceEventReceived : github.com/mailru/easyjson.Marshaler *EventBackgroundServiceEventReceived : github.com/mailru/easyjson.MarshalerUnmarshaler *EventBackgroundServiceEventReceived : github.com/mailru/easyjson.Unmarshaler EventBackgroundServiceEventReceived : encoding/json.Marshaler *EventBackgroundServiceEventReceived : encoding/json.Unmarshaler
EventMetadata a key-value pair for additional event information to pass along. See: https://chromedevtools.github.io/devtools-protocol/tot/BackgroundService#type-EventMetadata Key string Value string MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventMetadata : github.com/goccy/go-json.Marshaler *EventMetadata : github.com/goccy/go-json.Unmarshaler EventMetadata : github.com/mailru/easyjson.Marshaler *EventMetadata : github.com/mailru/easyjson.MarshalerUnmarshaler *EventMetadata : github.com/mailru/easyjson.Unmarshaler EventMetadata : encoding/json.Marshaler *EventMetadata : encoding/json.Unmarshaler
EventRecordingStateChanged called when the recording state for the service has been updated. See: https://chromedevtools.github.io/devtools-protocol/tot/BackgroundService#event-recordingStateChanged IsRecording bool Service ServiceName MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventRecordingStateChanged : github.com/goccy/go-json.Marshaler *EventRecordingStateChanged : github.com/goccy/go-json.Unmarshaler EventRecordingStateChanged : github.com/mailru/easyjson.Marshaler *EventRecordingStateChanged : github.com/mailru/easyjson.MarshalerUnmarshaler *EventRecordingStateChanged : github.com/mailru/easyjson.Unmarshaler EventRecordingStateChanged : encoding/json.Marshaler *EventRecordingStateChanged : encoding/json.Unmarshaler
ServiceName the Background Service that will be associated with the commands/events. Every Background Service operates independently, but they share the same API. See: https://chromedevtools.github.io/devtools-protocol/tot/BackgroundService#type-ServiceName MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the ServiceName as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. ServiceName : github.com/goccy/go-json.Marshaler *ServiceName : github.com/goccy/go-json.Unmarshaler ServiceName : github.com/mailru/easyjson.Marshaler *ServiceName : github.com/mailru/easyjson.MarshalerUnmarshaler *ServiceName : github.com/mailru/easyjson.Unmarshaler ServiceName : encoding/json.Marshaler *ServiceName : encoding/json.Unmarshaler ServiceName : expvar.Var ServiceName : fmt.Stringer func ClearEvents(service ServiceName) *ClearEventsParams func SetRecording(shouldRecord bool, service ServiceName) *SetRecordingParams func StartObserving(service ServiceName) *StartObservingParams func StopObserving(service ServiceName) *StopObservingParams const ServiceNameBackgroundFetch const ServiceNameBackgroundSync const ServiceNameNotifications const ServiceNamePaymentHandler const ServiceNamePeriodicBackgroundSync const ServiceNamePushMessaging
SetRecordingParams set the recording state for the service. Service ServiceName ShouldRecord bool Do executes BackgroundService.setRecording against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetRecordingParams : github.com/chromedp/chromedp.Action *SetRecordingParams : github.com/chromedp/chromedp.CallAction *SetRecordingParams : github.com/chromedp/chromedp.EmulateAction *SetRecordingParams : github.com/chromedp/chromedp.EvaluateAction *SetRecordingParams : github.com/chromedp/chromedp.KeyAction *SetRecordingParams : github.com/chromedp/chromedp.MouseAction *SetRecordingParams : github.com/chromedp/chromedp.NavigateAction *SetRecordingParams : github.com/chromedp/chromedp.PollAction *SetRecordingParams : github.com/chromedp/chromedp.QueryAction SetRecordingParams : github.com/goccy/go-json.Marshaler *SetRecordingParams : github.com/goccy/go-json.Unmarshaler SetRecordingParams : github.com/mailru/easyjson.Marshaler *SetRecordingParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetRecordingParams : github.com/mailru/easyjson.Unmarshaler SetRecordingParams : encoding/json.Marshaler *SetRecordingParams : encoding/json.Unmarshaler func SetRecording(shouldRecord bool, service ServiceName) *SetRecordingParams
StartObservingParams enables event updates for the service. Service ServiceName Do executes BackgroundService.startObserving against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *StartObservingParams : github.com/chromedp/chromedp.Action *StartObservingParams : github.com/chromedp/chromedp.CallAction *StartObservingParams : github.com/chromedp/chromedp.EmulateAction *StartObservingParams : github.com/chromedp/chromedp.EvaluateAction *StartObservingParams : github.com/chromedp/chromedp.KeyAction *StartObservingParams : github.com/chromedp/chromedp.MouseAction *StartObservingParams : github.com/chromedp/chromedp.NavigateAction *StartObservingParams : github.com/chromedp/chromedp.PollAction *StartObservingParams : github.com/chromedp/chromedp.QueryAction StartObservingParams : github.com/goccy/go-json.Marshaler *StartObservingParams : github.com/goccy/go-json.Unmarshaler StartObservingParams : github.com/mailru/easyjson.Marshaler *StartObservingParams : github.com/mailru/easyjson.MarshalerUnmarshaler *StartObservingParams : github.com/mailru/easyjson.Unmarshaler StartObservingParams : encoding/json.Marshaler *StartObservingParams : encoding/json.Unmarshaler func StartObserving(service ServiceName) *StartObservingParams
StopObservingParams disables event updates for the service. Service ServiceName Do executes BackgroundService.stopObserving against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *StopObservingParams : github.com/chromedp/chromedp.Action *StopObservingParams : github.com/chromedp/chromedp.CallAction *StopObservingParams : github.com/chromedp/chromedp.EmulateAction *StopObservingParams : github.com/chromedp/chromedp.EvaluateAction *StopObservingParams : github.com/chromedp/chromedp.KeyAction *StopObservingParams : github.com/chromedp/chromedp.MouseAction *StopObservingParams : github.com/chromedp/chromedp.NavigateAction *StopObservingParams : github.com/chromedp/chromedp.PollAction *StopObservingParams : github.com/chromedp/chromedp.QueryAction StopObservingParams : github.com/goccy/go-json.Marshaler *StopObservingParams : github.com/goccy/go-json.Unmarshaler StopObservingParams : github.com/mailru/easyjson.Marshaler *StopObservingParams : github.com/mailru/easyjson.MarshalerUnmarshaler *StopObservingParams : github.com/mailru/easyjson.Unmarshaler StopObservingParams : encoding/json.Marshaler *StopObservingParams : encoding/json.Unmarshaler func StopObserving(service ServiceName) *StopObservingParams
Package-Level Functions (total 4)
ClearEvents clears all stored data for the service. See: https://chromedevtools.github.io/devtools-protocol/tot/BackgroundService#method-clearEvents parameters: service
SetRecording set the recording state for the service. See: https://chromedevtools.github.io/devtools-protocol/tot/BackgroundService#method-setRecording parameters: shouldRecord service
StartObserving enables event updates for the service. See: https://chromedevtools.github.io/devtools-protocol/tot/BackgroundService#method-startObserving parameters: service
StopObserving disables event updates for the service. See: https://chromedevtools.github.io/devtools-protocol/tot/BackgroundService#method-stopObserving parameters: service
Package-Level Constants (total 10)
Command names.
Command names.
Command names.
Command names.
ServiceName values.
ServiceName values.
ServiceName values.
ServiceName values.
ServiceName values.
ServiceName values.