Versions in this module Expand all Collapse all v0 v0.1.1 Oct 17, 2019 Changes in this version + const CommandDeliverPushMessage + const CommandDisable + const CommandDispatchPeriodicSyncEvent + const CommandDispatchSyncEvent + const CommandEnable + const CommandInspectWorker + const CommandSetForceUpdateOnPageLoad + const CommandSkipWaiting + const CommandStartWorker + const CommandStopAllWorkers + const CommandStopWorker + const CommandUnregister + const CommandUpdateRegistration + type DeliverPushMessageParams struct + Data string + Origin string + RegistrationID RegistrationID + func DeliverPushMessage(origin string, registrationID RegistrationID, data string) *DeliverPushMessageParams + func (p *DeliverPushMessageParams) Do(ctx context.Context) (err error) + func (v *DeliverPushMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DeliverPushMessageParams) UnmarshalJSON(data []byte) error + func (v DeliverPushMessageParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DeliverPushMessageParams) MarshalJSON() ([]byte, error) + type DisableParams struct + func Disable() *DisableParams + func (p *DisableParams) Do(ctx context.Context) (err error) + func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DisableParams) UnmarshalJSON(data []byte) error + func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DisableParams) MarshalJSON() ([]byte, error) + type DispatchPeriodicSyncEventParams struct + Origin string + RegistrationID RegistrationID + Tag string + func DispatchPeriodicSyncEvent(origin string, registrationID RegistrationID, tag string) *DispatchPeriodicSyncEventParams + func (p *DispatchPeriodicSyncEventParams) Do(ctx context.Context) (err error) + func (v *DispatchPeriodicSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DispatchPeriodicSyncEventParams) UnmarshalJSON(data []byte) error + func (v DispatchPeriodicSyncEventParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DispatchPeriodicSyncEventParams) MarshalJSON() ([]byte, error) + type DispatchSyncEventParams struct + LastChance bool + Origin string + RegistrationID RegistrationID + Tag string + func DispatchSyncEvent(origin string, registrationID RegistrationID, tag string, lastChance bool) *DispatchSyncEventParams + func (p *DispatchSyncEventParams) Do(ctx context.Context) (err error) + func (v *DispatchSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DispatchSyncEventParams) UnmarshalJSON(data []byte) error + func (v DispatchSyncEventParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DispatchSyncEventParams) MarshalJSON() ([]byte, error) + type EnableParams struct + func Enable() *EnableParams + func (p *EnableParams) Do(ctx context.Context) (err error) + func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EnableParams) UnmarshalJSON(data []byte) error + func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v EnableParams) MarshalJSON() ([]byte, error) + type ErrorMessage struct + ColumnNumber int64 + ErrorMessage string + LineNumber int64 + RegistrationID RegistrationID + SourceURL string + VersionID string + func (v *ErrorMessage) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ErrorMessage) UnmarshalJSON(data []byte) error + func (v ErrorMessage) MarshalEasyJSON(w *jwriter.Writer) + func (v ErrorMessage) MarshalJSON() ([]byte, error) + type EventWorkerErrorReported struct + ErrorMessage *ErrorMessage + func (v *EventWorkerErrorReported) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventWorkerErrorReported) UnmarshalJSON(data []byte) error + func (v EventWorkerErrorReported) MarshalEasyJSON(w *jwriter.Writer) + func (v EventWorkerErrorReported) MarshalJSON() ([]byte, error) + type EventWorkerRegistrationUpdated struct + Registrations []*Registration + func (v *EventWorkerRegistrationUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventWorkerRegistrationUpdated) UnmarshalJSON(data []byte) error + func (v EventWorkerRegistrationUpdated) MarshalEasyJSON(w *jwriter.Writer) + func (v EventWorkerRegistrationUpdated) MarshalJSON() ([]byte, error) + type EventWorkerVersionUpdated struct + Versions []*Version + func (v *EventWorkerVersionUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventWorkerVersionUpdated) UnmarshalJSON(data []byte) error + func (v EventWorkerVersionUpdated) MarshalEasyJSON(w *jwriter.Writer) + func (v EventWorkerVersionUpdated) MarshalJSON() ([]byte, error) + type InspectWorkerParams struct + VersionID string + func InspectWorker(versionID string) *InspectWorkerParams + func (p *InspectWorkerParams) Do(ctx context.Context) (err error) + func (v *InspectWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *InspectWorkerParams) UnmarshalJSON(data []byte) error + func (v InspectWorkerParams) MarshalEasyJSON(w *jwriter.Writer) + func (v InspectWorkerParams) MarshalJSON() ([]byte, error) + type Registration struct + IsDeleted bool + RegistrationID RegistrationID + ScopeURL string + func (v *Registration) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Registration) UnmarshalJSON(data []byte) error + func (v Registration) MarshalEasyJSON(w *jwriter.Writer) + func (v Registration) MarshalJSON() ([]byte, error) + type RegistrationID string + func (t RegistrationID) String() string + type SetForceUpdateOnPageLoadParams struct + ForceUpdateOnPageLoad bool + func SetForceUpdateOnPageLoad(forceUpdateOnPageLoad bool) *SetForceUpdateOnPageLoadParams + func (p *SetForceUpdateOnPageLoadParams) Do(ctx context.Context) (err error) + func (v *SetForceUpdateOnPageLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetForceUpdateOnPageLoadParams) UnmarshalJSON(data []byte) error + func (v SetForceUpdateOnPageLoadParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetForceUpdateOnPageLoadParams) MarshalJSON() ([]byte, error) + type SkipWaitingParams struct + ScopeURL string + func SkipWaiting(scopeURL string) *SkipWaitingParams + func (p *SkipWaitingParams) Do(ctx context.Context) (err error) + func (v *SkipWaitingParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SkipWaitingParams) UnmarshalJSON(data []byte) error + func (v SkipWaitingParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SkipWaitingParams) MarshalJSON() ([]byte, error) + type StartWorkerParams struct + ScopeURL string + func StartWorker(scopeURL string) *StartWorkerParams + func (p *StartWorkerParams) Do(ctx context.Context) (err error) + func (v *StartWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *StartWorkerParams) UnmarshalJSON(data []byte) error + func (v StartWorkerParams) MarshalEasyJSON(w *jwriter.Writer) + func (v StartWorkerParams) MarshalJSON() ([]byte, error) + type StopAllWorkersParams struct + func StopAllWorkers() *StopAllWorkersParams + func (p *StopAllWorkersParams) Do(ctx context.Context) (err error) + func (v *StopAllWorkersParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *StopAllWorkersParams) UnmarshalJSON(data []byte) error + func (v StopAllWorkersParams) MarshalEasyJSON(w *jwriter.Writer) + func (v StopAllWorkersParams) MarshalJSON() ([]byte, error) + type StopWorkerParams struct + VersionID string + func StopWorker(versionID string) *StopWorkerParams + func (p *StopWorkerParams) Do(ctx context.Context) (err error) + func (v *StopWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *StopWorkerParams) UnmarshalJSON(data []byte) error + func (v StopWorkerParams) MarshalEasyJSON(w *jwriter.Writer) + func (v StopWorkerParams) MarshalJSON() ([]byte, error) + type UnregisterParams struct + ScopeURL string + func Unregister(scopeURL string) *UnregisterParams + func (p *UnregisterParams) Do(ctx context.Context) (err error) + func (v *UnregisterParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *UnregisterParams) UnmarshalJSON(data []byte) error + func (v UnregisterParams) MarshalEasyJSON(w *jwriter.Writer) + func (v UnregisterParams) MarshalJSON() ([]byte, error) + type UpdateRegistrationParams struct + ScopeURL string + func UpdateRegistration(scopeURL string) *UpdateRegistrationParams + func (p *UpdateRegistrationParams) Do(ctx context.Context) (err error) + func (v *UpdateRegistrationParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *UpdateRegistrationParams) UnmarshalJSON(data []byte) error + func (v UpdateRegistrationParams) MarshalEasyJSON(w *jwriter.Writer) + func (v UpdateRegistrationParams) MarshalJSON() ([]byte, error) + type Version struct + ControlledClients []target.ID + RegistrationID RegistrationID + RunningStatus VersionRunningStatus + ScriptLastModified float64 + ScriptResponseTime float64 + ScriptURL string + Status VersionStatus + TargetID target.ID + VersionID string + func (v *Version) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Version) UnmarshalJSON(data []byte) error + func (v Version) MarshalEasyJSON(w *jwriter.Writer) + func (v Version) MarshalJSON() ([]byte, error) + type VersionRunningStatus string + const VersionRunningStatusRunning + const VersionRunningStatusStarting + const VersionRunningStatusStopped + const VersionRunningStatusStopping + func (t *VersionRunningStatus) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *VersionRunningStatus) UnmarshalJSON(buf []byte) error + func (t VersionRunningStatus) MarshalEasyJSON(out *jwriter.Writer) + func (t VersionRunningStatus) MarshalJSON() ([]byte, error) + func (t VersionRunningStatus) String() string + type VersionStatus string + const VersionStatusActivated + const VersionStatusActivating + const VersionStatusInstalled + const VersionStatusInstalling + const VersionStatusNew + const VersionStatusRedundant + func (t *VersionStatus) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *VersionStatus) UnmarshalJSON(buf []byte) error + func (t VersionStatus) MarshalEasyJSON(out *jwriter.Writer) + func (t VersionStatus) MarshalJSON() ([]byte, error) + func (t VersionStatus) String() string