Versions in this module Expand all Collapse all v1 v1.0.0 Apr 14, 2020 Changes in this version + const CommandBackgroundServiceClearEvents + const CommandBackgroundServiceSetRecording + const CommandBackgroundServiceStartObserving + const CommandBackgroundServiceStopObserving + const EventBackgroundServiceBackgroundServiceEventReceived + const EventBackgroundServiceRecordingStateChanged + var EventConstants = map[string]Unmarshaler + func GetEventReply(event string) (json.Unmarshaler, bool) + type ClearEventsArgs struct + Service ServiceName + func (a *ClearEventsArgs) MarshalJSON() ([]byte, error) + func (a *ClearEventsArgs) UnmarshalJSON(b []byte) error + type ClearEventsReply struct + func (a *ClearEventsReply) GetFrameID() string + func (a *ClearEventsReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *ClearEventsReply) UnmarshalJSON(b []byte) error + type Event struct + EventMetadata []EventMetadata + EventName string + InstanceID string + Origin string + Service ServiceName + ServiceWorkerRegistrationID serviceworker.RegistrationID + Timestamp shared.TimeSinceEpoch + type EventMetadata struct + Key string + Value string + type EventReceivedReply struct + BackgroundServiceEvent Event + func (a *EventReceivedReply) GetFrameID() string + func (a *EventReceivedReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *EventReceivedReply) UnmarshalJSON(b []byte) error + type RecordingStateChangedReply struct + IsRecording bool + Service ServiceName + func (a *RecordingStateChangedReply) GetFrameID() string + func (a *RecordingStateChangedReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *RecordingStateChangedReply) UnmarshalJSON(b []byte) error + type ServiceName string + const ServiceNameBackgroundFetch + const ServiceNameBackgroundSync + const ServiceNameNotSet + const ServiceNameNotifications + const ServiceNamePaymentHandler + const ServiceNamePeriodicBackgroundSync + const ServiceNamePushMessaging + func (e ServiceName) String() string + func (e ServiceName) Valid() bool + type SetRecordingArgs struct + Service ServiceName + ShouldRecord bool + func (a *SetRecordingArgs) MarshalJSON() ([]byte, error) + func (a *SetRecordingArgs) UnmarshalJSON(b []byte) error + type SetRecordingReply struct + func (a *SetRecordingReply) GetFrameID() string + func (a *SetRecordingReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetRecordingReply) UnmarshalJSON(b []byte) error + type StartObservingArgs struct + Service ServiceName + func (a *StartObservingArgs) MarshalJSON() ([]byte, error) + func (a *StartObservingArgs) UnmarshalJSON(b []byte) error + type StartObservingReply struct + func (a *StartObservingReply) GetFrameID() string + func (a *StartObservingReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *StartObservingReply) UnmarshalJSON(b []byte) error + type StopObservingArgs struct + Service ServiceName + func (a *StopObservingArgs) MarshalJSON() ([]byte, error) + func (a *StopObservingArgs) UnmarshalJSON(b []byte) error + type StopObservingReply struct + func (a *StopObservingReply) GetFrameID() string + func (a *StopObservingReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *StopObservingReply) UnmarshalJSON(b []byte) error + type Unmarshaler func() json.Unmarshaler