Documentation
¶
Overview ¶
Code generated by protocolgen; DO NOT EDIT.
Index ¶
- Constants
- Variables
- type BookmarksAddParams
- type BookmarksAddResult
- type BookmarksEditParams
- type BookmarksEditResult
- type BookmarksListParams
- type BookmarksListResult
- type BookmarksMkdirParams
- type BookmarksMkdirResult
- type BookmarksMoveParams
- type BookmarksMoveResult
- type BookmarksRemoveParams
- type BookmarksRemoveResult
- type BookmarksSearchParams
- type BookmarksSearchResult
- type BrowsingDataClearParams
- type BrowsingDataClearResult
- type CookiesClearParams
- type CookiesClearResult
- type CookiesGetParams
- type CookiesGetResult
- type CookiesListParams
- type CookiesListResult
- type CookiesRemoveParams
- type CookiesRemoveResult
- type CookiesSetParams
- type CookiesSetResult
- type DebuggerBodyParams
- type DebuggerBodyResult
- type DebuggerCloseParams
- type DebuggerCloseResult
- type DebuggerDetachParams
- type DebuggerDetachResult
- type DebuggerDetachedNotification
- type DebuggerEventNotification
- type DebuggerOpenParams
- type DebuggerOpenResult
- type DebuggerOwnParams
- type DebuggerOwnResult
- type DebuggerRecordParams
- type DebuggerRecordResult
- type DebuggerSendParams
- type DebuggerSendResult
- type DebuggerTabNotification
- type DebuggerTabRemovedNotification
- type DebuggerTargetsParams
- type DebuggerTargetsResult
- type DebuggerUserAgentParams
- type DebuggerUserAgentResult
- type DownloadsCancelParams
- type DownloadsCancelResult
- type DownloadsDeleteFileParams
- type DownloadsDeleteFileResult
- type DownloadsEraseParams
- type DownloadsEraseResult
- type DownloadsListParams
- type DownloadsListResult
- type DownloadsPauseParams
- type DownloadsPauseResult
- type DownloadsResumeParams
- type DownloadsResumeResult
- type DownloadsShowParams
- type DownloadsShowResult
- type DownloadsStartParams
- type DownloadsStartResult
- type ExtensionsDisableParams
- type ExtensionsEnableParams
- type ExtensionsListParams
- type ExtensionsListResult
- type ExtensionsSetEnabledResult
- type ExtensionsUninstallParams
- type ExtensionsUninstallResult
- type HistoryClearParams
- type HistoryClearResult
- type HistoryRemoveParams
- type HistoryRemoveResult
- type HistorySearchParams
- type HistorySearchResult
- type HistoryVisitsParams
- type HistoryVisitsResult
- type Method
- type MethodMetadata
- type Notification
- type NotificationMetadata
- type ReadingListAddParams
- type ReadingListAddResult
- type ReadingListListParams
- type ReadingListListResult
- type ReadingListMarkReadParams
- type ReadingListMarkReadResult
- type ReadingListRemoveParams
- type ReadingListRemoveResult
- type RecentListParams
- type RecentListResult
- type RecentRestoreParams
- type RecentRestoreResult
- type ScriptMetadata
- type ScriptMutationResult
- type ScriptSource
- type ScriptSourceGrepResult
- type ScriptUUIDParams
- type ScriptsDeleteResult
- type ScriptsEditParams
- type ScriptsInstallParams
- type ScriptsListParams
- type ScriptsListResult
- type ScriptsSourceGetParams
- type ScriptsSourceGrepParams
- type ScriptsToggleParams
- type ScriptsToggleResult
- type TabGroupsAddParams
- type TabGroupsAddResult
- type TabGroupsCreateParams
- type TabGroupsCreateResult
- type TabGroupsEditParams
- type TabGroupsEditResult
- type TabGroupsListParams
- type TabGroupsListResult
- type TabGroupsUngroupParams
- type TabGroupsUngroupResult
- type TabsActivateParams
- type TabsActivateResult
- type TabsCloseParams
- type TabsCloseResult
- type TabsCurrentParams
- type TabsCurrentResult
- type TabsDuplicateParams
- type TabsIdsParams
- type TabsIdsResult
- type TabsListParams
- type TabsListResult
- type TabsMoveParams
- type TabsMoveResult
- type TabsOpenParams
- type TabsOpenResult
- type TabsReloadParams
- type WindowsCloseParams
- type WindowsCloseResult
- type WindowsFocusParams
- type WindowsFocusResult
- type WindowsListParams
- type WindowsListResult
- type WindowsOpenParams
- type WindowsOpenResult
- type WindowsStateParams
- type WindowsStateResult
Constants ¶
View Source
const ( ErrorCodeInvalidRequest = "INVALID_REQUEST" ErrorCodeMethodNotFound = "METHOD_NOT_FOUND" ErrorCodeUserRejected = "USER_REJECTED" ErrorCodeOperationExpired = "OPERATION_EXPIRED" ErrorCodeConflict = "CONFLICT" ErrorCodeNotFound = "NOT_FOUND" ErrorCodeRateLimited = "RATE_LIMITED" ErrorCodePayloadTooLarge = "PAYLOAD_TOO_LARGE" ErrorCodeInternalError = "INTERNAL_ERROR" ErrorCodeScriptcatOffline = "SCRIPTCAT_OFFLINE" ErrorCodeScriptcatNotFound = "SCRIPTCAT_NOT_FOUND" ErrorCodeScriptcatAmbiguous = "SCRIPTCAT_AMBIGUOUS" ErrorCodeNoBrowserConnected = "NO_BROWSER_CONNECTED" ErrorCodeBrowserOffline = "BROWSER_OFFLINE" ErrorCodeBrowserNotFound = "BROWSER_NOT_FOUND" ErrorCodeBrowserAmbiguous = "BROWSER_AMBIGUOUS" ErrorCodeConfirmationRequired = "CONFIRMATION_REQUIRED" ErrorCodeUnsupported = "UNSUPPORTED" ErrorCodeStaleRef = "STALE_REF" ErrorCodeTimeout = "TIMEOUT" ErrorCodeTargetAmbiguous = "TARGET_AMBIGUOUS" ErrorCodePageNotAutomatable = "PAGE_NOT_AUTOMATABLE" ErrorCodePageHidden = "PAGE_HIDDEN" ErrorCodeDebuggerDetached = "DEBUGGER_DETACHED" ErrorCodeDialogOpen = "DIALOG_OPEN" ErrorCodePageUnresponsive = "PAGE_UNRESPONSIVE" ErrorCodeEvalError = "EVAL_ERROR" ErrorCodeEndpointConnected = "ENDPOINT_CONNECTED" )
View Source
const ( CryptoContextBrowserPairDaemon = "browserPairDaemon" CryptoContextBrowserPairExt = "browserPairExt" CryptoContextBrowserSessionDaemon = "browserSessionDaemon" CryptoContextBrowserSessionExt = "browserSessionExt" CryptoContextPairDaemon = "pairDaemon" CryptoContextPairExt = "pairExt" CryptoContextPairKdfInfoEnc = "pairKdfInfoEnc" CryptoContextPairKdfInfoMac = "pairKdfInfoMac" CryptoContextPairKdfSalt = "pairKdfSalt" CryptoContextScriptcatPairDaemon = "scriptcatPairDaemon" CryptoContextScriptcatPairExt = "scriptcatPairExt" CryptoContextScriptcatSessionDaemon = "scriptcatSessionDaemon" CryptoContextScriptcatSessionExt = "scriptcatSessionExt" CryptoContextSessionDaemon = "sessionDaemon" CryptoContextSessionExt = "sessionExt" )
crypto.context 的键,用于查 protocol.Crypto.Context。
View Source
const JSONRPCVersion = "2.0"
View Source
const SchemaVersion = "1.0.0"
Variables ¶
View Source
var Methods = map[string]MethodMetadata{ "bookmarks.add": {Params: "BookmarksAddParams", Result: "BookmarksAddResult", Scope: "bookmarks:add", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "bookmarks.edit": {Params: "BookmarksEditParams", Result: "BookmarksEditResult", Scope: "bookmarks:edit", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "bookmarks.list": {Params: "BookmarksListParams", Result: "BookmarksListResult", Scope: "bookmarks:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "nodes", Internal: false}, "bookmarks.mkdir": {Params: "BookmarksMkdirParams", Result: "BookmarksMkdirResult", Scope: "bookmarks:mkdir", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "bookmarks.move": {Params: "BookmarksMoveParams", Result: "BookmarksMoveResult", Scope: "bookmarks:move", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "bookmarks.remove": {Params: "BookmarksRemoveParams", Result: "BookmarksRemoveResult", Scope: "bookmarks:remove", Effect: "write", Blocking: "approval", Level: "L2", Peer: "browser", MergeField: "", Internal: false}, "bookmarks.search": {Params: "BookmarksSearchParams", Result: "BookmarksSearchResult", Scope: "bookmarks:search", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "nodes", Internal: false}, "browsingData.clear": {Params: "BrowsingDataClearParams", Result: "BrowsingDataClearResult", Scope: "browsingData:clear", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false}, "cookies.clear": {Params: "CookiesClearParams", Result: "CookiesClearResult", Scope: "cookies:clear", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false}, "cookies.get": {Params: "CookiesGetParams", Result: "CookiesGetResult", Scope: "cookies:get", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "cookies.list": {Params: "CookiesListParams", Result: "CookiesListResult", Scope: "cookies:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "items", Internal: false}, "cookies.remove": {Params: "CookiesRemoveParams", Result: "CookiesRemoveResult", Scope: "cookies:remove", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false}, "cookies.set": {Params: "CookiesSetParams", Result: "CookiesSetResult", Scope: "cookies:set", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "debugger.body": {Params: "DebuggerBodyParams", Result: "DebuggerBodyResult", Scope: "debugger:body", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true}, "debugger.close": {Params: "DebuggerCloseParams", Result: "DebuggerCloseResult", Scope: "debugger:close", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true}, "debugger.detach": {Params: "DebuggerDetachParams", Result: "DebuggerDetachResult", Scope: "debugger:detach", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true}, "debugger.open": {Params: "DebuggerOpenParams", Result: "DebuggerOpenResult", Scope: "debugger:open", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true}, "debugger.own": {Params: "DebuggerOwnParams", Result: "DebuggerOwnResult", Scope: "debugger:own", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true}, "debugger.record": {Params: "DebuggerRecordParams", Result: "DebuggerRecordResult", Scope: "debugger:record", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true}, "debugger.send": {Params: "DebuggerSendParams", Result: "DebuggerSendResult", Scope: "debugger:send", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true}, "debugger.targets": {Params: "DebuggerTargetsParams", Result: "DebuggerTargetsResult", Scope: "debugger:targets", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true}, "debugger.userAgent": {Params: "DebuggerUserAgentParams", Result: "DebuggerUserAgentResult", Scope: "debugger:userAgent", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true}, "downloads.cancel": {Params: "DownloadsCancelParams", Result: "DownloadsCancelResult", Scope: "downloads:cancel", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false}, "downloads.deleteFile": {Params: "DownloadsDeleteFileParams", Result: "DownloadsDeleteFileResult", Scope: "downloads:deleteFile", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false}, "downloads.erase": {Params: "DownloadsEraseParams", Result: "DownloadsEraseResult", Scope: "downloads:erase", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false}, "downloads.list": {Params: "DownloadsListParams", Result: "DownloadsListResult", Scope: "downloads:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "items", Internal: false}, "downloads.pause": {Params: "DownloadsPauseParams", Result: "DownloadsPauseResult", Scope: "downloads:pause", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "downloads.resume": {Params: "DownloadsResumeParams", Result: "DownloadsResumeResult", Scope: "downloads:resume", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "downloads.show": {Params: "DownloadsShowParams", Result: "DownloadsShowResult", Scope: "downloads:show", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "downloads.start": {Params: "DownloadsStartParams", Result: "DownloadsStartResult", Scope: "downloads:start", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "extensions.disable": {Params: "ExtensionsDisableParams", Result: "ExtensionsSetEnabledResult", Scope: "extensions:disable", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false}, "extensions.enable": {Params: "ExtensionsEnableParams", Result: "ExtensionsSetEnabledResult", Scope: "extensions:enable", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "extensions.list": {Params: "ExtensionsListParams", Result: "ExtensionsListResult", Scope: "extensions:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "items", Internal: false}, "extensions.uninstall": {Params: "ExtensionsUninstallParams", Result: "ExtensionsUninstallResult", Scope: "extensions:uninstall", Effect: "write", Blocking: "approval", Level: "L2", Peer: "browser", MergeField: "", Internal: false}, "history.clear": {Params: "HistoryClearParams", Result: "HistoryClearResult", Scope: "history:clear", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false}, "history.remove": {Params: "HistoryRemoveParams", Result: "HistoryRemoveResult", Scope: "history:remove", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false}, "history.search": {Params: "HistorySearchParams", Result: "HistorySearchResult", Scope: "history:search", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "items", Internal: false}, "history.visits": {Params: "HistoryVisitsParams", Result: "HistoryVisitsResult", Scope: "history:visits", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "visits", Internal: false}, "readingList.add": {Params: "ReadingListAddParams", Result: "ReadingListAddResult", Scope: "readingList:add", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "readingList.list": {Params: "ReadingListListParams", Result: "ReadingListListResult", Scope: "readingList:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "entries", Internal: false}, "readingList.markRead": {Params: "ReadingListMarkReadParams", Result: "ReadingListMarkReadResult", Scope: "readingList:markRead", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "readingList.remove": {Params: "ReadingListRemoveParams", Result: "ReadingListRemoveResult", Scope: "readingList:remove", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false}, "recent.list": {Params: "RecentListParams", Result: "RecentListResult", Scope: "recent:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "items", Internal: false}, "recent.restore": {Params: "RecentRestoreParams", Result: "RecentRestoreResult", Scope: "recent:restore", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "scripts.delete.request": {Params: "ScriptUUIDParams", Result: "ScriptsDeleteResult", Scope: "scripts:delete:request", Effect: "write", Blocking: "approval", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false}, "scripts.edit.request": {Params: "ScriptsEditParams", Result: "ScriptMutationResult", Scope: "scripts:edit:request", Effect: "write", Blocking: "approval", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false}, "scripts.install.request": {Params: "ScriptsInstallParams", Result: "ScriptMutationResult", Scope: "scripts:install:request", Effect: "write", Blocking: "approval", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false}, "scripts.list": {Params: "ScriptsListParams", Result: "ScriptsListResult", Scope: "scripts:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "scriptcat", MergeField: "scripts", Internal: false}, "scripts.metadata.get": {Params: "ScriptUUIDParams", Result: "ScriptMetadata", Scope: "scripts:metadata:read", Effect: "read", Blocking: "none", Level: "L0", Peer: "scriptcat", MergeField: "", Internal: false}, "scripts.source.get": {Params: "ScriptsSourceGetParams", Result: "ScriptSource", Scope: "scripts:source:read", Effect: "read", Blocking: "disclosure", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false}, "scripts.source.grep": {Params: "ScriptsSourceGrepParams", Result: "ScriptSourceGrepResult", Scope: "scripts:source:read", Effect: "read", Blocking: "disclosure", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false}, "scripts.toggle.request": {Params: "ScriptsToggleParams", Result: "ScriptsToggleResult", Scope: "scripts:toggle:request", Effect: "write", Blocking: "approval", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false}, "tabGroups.add": {Params: "TabGroupsAddParams", Result: "TabGroupsAddResult", Scope: "tabGroups:add", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabGroups.create": {Params: "TabGroupsCreateParams", Result: "TabGroupsCreateResult", Scope: "tabGroups:create", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabGroups.edit": {Params: "TabGroupsEditParams", Result: "TabGroupsEditResult", Scope: "tabGroups:edit", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabGroups.list": {Params: "TabGroupsListParams", Result: "TabGroupsListResult", Scope: "tabGroups:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "groups", Internal: false}, "tabGroups.ungroup": {Params: "TabGroupsUngroupParams", Result: "TabGroupsUngroupResult", Scope: "tabGroups:ungroup", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabs.activate": {Params: "TabsActivateParams", Result: "TabsActivateResult", Scope: "tabs:activate", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabs.close": {Params: "TabsCloseParams", Result: "TabsCloseResult", Scope: "tabs:close", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabs.current": {Params: "TabsCurrentParams", Result: "TabsCurrentResult", Scope: "tabs:current", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true}, "tabs.duplicate": {Params: "TabsDuplicateParams", Result: "TabsOpenResult", Scope: "tabs:duplicate", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabs.list": {Params: "TabsListParams", Result: "TabsListResult", Scope: "tabs:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "tabs", Internal: false}, "tabs.move": {Params: "TabsMoveParams", Result: "TabsMoveResult", Scope: "tabs:move", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabs.mute": {Params: "TabsIdsParams", Result: "TabsIdsResult", Scope: "tabs:mute", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabs.open": {Params: "TabsOpenParams", Result: "TabsOpenResult", Scope: "tabs:open", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabs.pin": {Params: "TabsIdsParams", Result: "TabsIdsResult", Scope: "tabs:pin", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabs.reload": {Params: "TabsReloadParams", Result: "TabsIdsResult", Scope: "tabs:reload", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabs.select": {Params: "TabsActivateParams", Result: "TabsActivateResult", Scope: "tabs:select", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true}, "tabs.unmute": {Params: "TabsIdsParams", Result: "TabsIdsResult", Scope: "tabs:unmute", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "tabs.unpin": {Params: "TabsIdsParams", Result: "TabsIdsResult", Scope: "tabs:unpin", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "windows.close": {Params: "WindowsCloseParams", Result: "WindowsCloseResult", Scope: "windows:close", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "windows.focus": {Params: "WindowsFocusParams", Result: "WindowsFocusResult", Scope: "windows:focus", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "windows.list": {Params: "WindowsListParams", Result: "WindowsListResult", Scope: "windows:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "windows", Internal: false}, "windows.open": {Params: "WindowsOpenParams", Result: "WindowsOpenResult", Scope: "windows:open", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, "windows.state": {Params: "WindowsStateParams", Result: "WindowsStateResult", Scope: "windows:state", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false}, }
View Source
var Notifications = map[string]NotificationMetadata{
"debugger.detached": {Params: "DebuggerDetachedNotification", Peer: "browser"},
"debugger.event": {Params: "DebuggerEventNotification", Peer: "browser"},
"debugger.tabCreated": {Params: "DebuggerTabNotification", Peer: "browser"},
"debugger.tabRemoved": {Params: "DebuggerTabRemovedNotification", Peer: "browser"},
"debugger.tabUpdated": {Params: "DebuggerTabNotification", Peer: "browser"},
}
Functions ¶
This section is empty.
Types ¶
type BookmarksAddParams ¶ added in v0.2.0
type BookmarksAddResult ¶ added in v0.2.0
type BookmarksAddResult struct {
Id string `json:"id"`
}
type BookmarksEditParams ¶ added in v0.2.0
type BookmarksEditResult ¶ added in v0.2.0
type BookmarksEditResult struct {
Id string `json:"id"`
}
type BookmarksListParams ¶ added in v0.2.0
type BookmarksListResult ¶ added in v0.2.0
type BookmarksListResult struct {
ContentTrust string `json:"contentTrust"`
HasMore bool `json:"hasMore"`
Nodes []struct {
AddedAt *int `json:"addedAt,omitempty"`
ChildCount *int `json:"childCount,omitempty"`
Id string `json:"id"`
Index int `json:"index"`
ParentId *string `json:"parentId,omitempty"`
Title string `json:"title"`
Type string `json:"type"`
URL *string `json:"url,omitempty"`
} `json:"nodes"`
}
type BookmarksMkdirParams ¶ added in v0.2.0
type BookmarksMkdirResult ¶ added in v0.2.0
type BookmarksMkdirResult struct {
Id string `json:"id"`
}
type BookmarksMoveParams ¶ added in v0.2.0
type BookmarksMoveResult ¶ added in v0.2.0
type BookmarksMoveResult struct {
Ids []string `json:"ids"`
}
type BookmarksRemoveParams ¶ added in v0.2.0
type BookmarksRemoveParams struct {
Ids []string `json:"ids"`
}
type BookmarksRemoveResult ¶ added in v0.2.0
type BookmarksSearchParams ¶ added in v0.2.0
type BookmarksSearchResult ¶ added in v0.2.0
type BookmarksSearchResult struct {
ContentTrust string `json:"contentTrust"`
HasMore bool `json:"hasMore"`
Nodes []struct {
AddedAt *int `json:"addedAt,omitempty"`
ChildCount *int `json:"childCount,omitempty"`
Id string `json:"id"`
Index int `json:"index"`
ParentId *string `json:"parentId,omitempty"`
Path []string `json:"path"`
Title string `json:"title"`
Type string `json:"type"`
URL *string `json:"url,omitempty"`
} `json:"nodes"`
}
type BrowsingDataClearParams ¶ added in v0.2.0
type BrowsingDataClearResult ¶ added in v0.2.0
type BrowsingDataClearResult struct {
Types []string `json:"types"`
}
type CookiesClearParams ¶ added in v0.2.0
type CookiesClearResult ¶ added in v0.2.0
type CookiesClearResult struct {
Deleted int `json:"deleted"`
}
type CookiesGetParams ¶ added in v0.2.0
type CookiesGetResult ¶ added in v0.2.0
type CookiesGetResult struct {
ContentTrust string `json:"contentTrust"`
Cookie struct {
Domain string `json:"domain"`
Expires *int `json:"expires,omitempty"`
HttpOnly bool `json:"httpOnly"`
Name string `json:"name"`
PartitionTopLevelSite *string `json:"partitionTopLevelSite,omitempty"`
Path string `json:"path"`
SameSite string `json:"sameSite"`
Secure bool `json:"secure"`
Session bool `json:"session"`
Value string `json:"value"`
} `json:"cookie"`
}
type CookiesListParams ¶ added in v0.2.0
type CookiesListResult ¶ added in v0.2.0
type CookiesListResult struct {
ContentTrust string `json:"contentTrust"`
HasMore bool `json:"hasMore"`
Items []struct {
Domain string `json:"domain"`
Expires *int `json:"expires,omitempty"`
HttpOnly bool `json:"httpOnly"`
Name string `json:"name"`
PartitionTopLevelSite *string `json:"partitionTopLevelSite,omitempty"`
Path string `json:"path"`
SameSite string `json:"sameSite"`
Secure bool `json:"secure"`
Session bool `json:"session"`
Value string `json:"value"`
} `json:"items"`
}
type CookiesRemoveParams ¶ added in v0.2.0
type CookiesRemoveResult ¶ added in v0.2.0
type CookiesRemoveResult struct {
Deleted int `json:"deleted"`
}
type CookiesSetParams ¶ added in v0.2.0
type CookiesSetParams struct {
Domain *string `json:"domain,omitempty"`
Expires *int `json:"expires,omitempty"`
HttpOnly *bool `json:"httpOnly,omitempty"`
Name string `json:"name"`
Path *string `json:"path,omitempty"`
SameSite *string `json:"sameSite,omitempty"`
Secure *bool `json:"secure,omitempty"`
URL string `json:"url"`
Value string `json:"value"`
}
type CookiesSetResult ¶ added in v0.2.0
type CookiesSetResult struct {
ContentTrust string `json:"contentTrust"`
Cookie struct {
Domain string `json:"domain"`
Expires *int `json:"expires,omitempty"`
HttpOnly bool `json:"httpOnly"`
Name string `json:"name"`
PartitionTopLevelSite *string `json:"partitionTopLevelSite,omitempty"`
Path string `json:"path"`
SameSite string `json:"sameSite"`
Secure bool `json:"secure"`
Session bool `json:"session"`
Value string `json:"value"`
} `json:"cookie"`
}
type DebuggerBodyParams ¶ added in v0.2.0
type DebuggerBodyResult ¶ added in v0.2.0
type DebuggerCloseParams ¶ added in v0.2.0
type DebuggerCloseParams struct {
TabId int `json:"tabId"`
}
type DebuggerCloseResult ¶ added in v0.2.0
type DebuggerCloseResult struct {
TabId int `json:"tabId"`
}
type DebuggerDetachParams ¶ added in v0.2.0
type DebuggerDetachParams struct {
TabId *int `json:"tabId,omitempty"`
}
type DebuggerDetachResult ¶ added in v0.2.0
type DebuggerDetachResult struct {
TabIds []int `json:"tabIds"`
}
type DebuggerDetachedNotification ¶ added in v0.2.0
type DebuggerEventNotification ¶ added in v0.2.0
type DebuggerEventNotification struct {
Method string `json:"method"`
Params json.RawMessage `json:"params,omitempty"`
SessionId *string `json:"sessionId,omitempty"`
TabId int `json:"tabId"`
}
type DebuggerOpenParams ¶ added in v0.2.0
type DebuggerOpenResult ¶ added in v0.2.0
type DebuggerOwnParams ¶ added in v0.2.0
type DebuggerOwnResult ¶ added in v0.2.0
type DebuggerOwnResult struct {
Owned bool `json:"owned"`
}
type DebuggerRecordParams ¶ added in v0.2.0
type DebuggerRecordResult ¶ added in v0.2.0
type DebuggerRecordResult struct {
Recording bool `json:"recording"`
}
type DebuggerSendParams ¶ added in v0.2.0
type DebuggerSendParams struct {
Method string `json:"method"`
Params json.RawMessage `json:"params,omitempty"`
SessionId *string `json:"sessionId,omitempty"`
TabId int `json:"tabId"`
}
type DebuggerSendResult ¶ added in v0.2.0
type DebuggerSendResult struct {
Result json.RawMessage `json:"result"`
}
type DebuggerTabNotification ¶ added in v0.2.0
type DebuggerTabRemovedNotification ¶ added in v0.2.0
type DebuggerTabRemovedNotification struct {
TabId int `json:"tabId"`
}
type DebuggerTargetsParams ¶ added in v0.2.0
type DebuggerTargetsParams struct {
}
type DebuggerTargetsResult ¶ added in v0.2.0
type DebuggerUserAgentParams ¶ added in v0.2.0
type DebuggerUserAgentParams struct {
}
type DebuggerUserAgentResult ¶ added in v0.2.0
type DebuggerUserAgentResult struct {
UserAgent string `json:"userAgent"`
}
type DownloadsCancelParams ¶ added in v0.2.0
type DownloadsCancelResult ¶ added in v0.2.0
type DownloadsCancelResult struct {
Id int `json:"id"`
}
type DownloadsDeleteFileParams ¶ added in v0.2.0
type DownloadsDeleteFileResult ¶ added in v0.2.0
type DownloadsDeleteFileResult struct {
Id int `json:"id"`
}
type DownloadsEraseParams ¶ added in v0.2.0
type DownloadsEraseResult ¶ added in v0.2.0
type DownloadsEraseResult struct {
Ids []int `json:"ids"`
}
type DownloadsListParams ¶ added in v0.2.0
type DownloadsListResult ¶ added in v0.2.0
type DownloadsListResult struct {
ContentTrust string `json:"contentTrust"`
HasMore bool `json:"hasMore"`
Items []struct {
BytesReceived int `json:"bytesReceived"`
Exists bool `json:"exists"`
Filename string `json:"filename"`
Id int `json:"id"`
StartTime int `json:"startTime"`
State string `json:"state"`
TotalBytes int `json:"totalBytes"`
URL string `json:"url"`
} `json:"items"`
}
type DownloadsPauseParams ¶ added in v0.2.0
type DownloadsPauseParams struct {
Id int `json:"id"`
}
type DownloadsPauseResult ¶ added in v0.2.0
type DownloadsPauseResult struct {
Id int `json:"id"`
}
type DownloadsResumeParams ¶ added in v0.2.0
type DownloadsResumeParams struct {
Id int `json:"id"`
}
type DownloadsResumeResult ¶ added in v0.2.0
type DownloadsResumeResult struct {
Id int `json:"id"`
}
type DownloadsShowParams ¶ added in v0.2.0
type DownloadsShowParams struct {
Id int `json:"id"`
}
type DownloadsShowResult ¶ added in v0.2.0
type DownloadsShowResult struct {
Id int `json:"id"`
}
type DownloadsStartParams ¶ added in v0.2.0
type DownloadsStartResult ¶ added in v0.2.0
type DownloadsStartResult struct {
Id int `json:"id"`
}
type ExtensionsDisableParams ¶ added in v0.2.0
type ExtensionsEnableParams ¶ added in v0.2.0
type ExtensionsEnableParams struct {
Id string `json:"id"`
}
type ExtensionsListParams ¶ added in v0.2.0
type ExtensionsListParams struct {
}
type ExtensionsListResult ¶ added in v0.2.0
type ExtensionsListResult struct {
ContentTrust string `json:"contentTrust"`
Items []struct {
Enabled bool `json:"enabled"`
Id string `json:"id"`
InstallType string `json:"installType"`
MayDisable bool `json:"mayDisable"`
Name string `json:"name"`
Type string `json:"type"`
Version string `json:"version"`
} `json:"items"`
}
type ExtensionsSetEnabledResult ¶ added in v0.2.0
type ExtensionsUninstallParams ¶ added in v0.2.0
type ExtensionsUninstallParams struct {
Id string `json:"id"`
}
type ExtensionsUninstallResult ¶ added in v0.2.0
type HistoryClearParams ¶ added in v0.2.0
type HistoryClearResult ¶ added in v0.2.0
type HistoryClearResult struct {
All bool `json:"all"`
}
type HistoryRemoveParams ¶ added in v0.2.0
type HistoryRemoveResult ¶ added in v0.2.0
type HistoryRemoveResult struct {
Urls []string `json:"urls"`
}
type HistorySearchParams ¶ added in v0.2.0
type HistorySearchResult ¶ added in v0.2.0
type HistoryVisitsParams ¶ added in v0.2.0
type HistoryVisitsResult ¶ added in v0.2.0
type Method ¶
type Method string
const ( MethodBookmarksAdd Method = "bookmarks.add" MethodBookmarksEdit Method = "bookmarks.edit" MethodBookmarksList Method = "bookmarks.list" MethodBookmarksMkdir Method = "bookmarks.mkdir" MethodBookmarksMove Method = "bookmarks.move" MethodBookmarksRemove Method = "bookmarks.remove" MethodBookmarksSearch Method = "bookmarks.search" MethodBrowsingDataClear Method = "browsingData.clear" MethodCookiesClear Method = "cookies.clear" MethodCookiesGet Method = "cookies.get" MethodCookiesList Method = "cookies.list" MethodCookiesRemove Method = "cookies.remove" MethodCookiesSet Method = "cookies.set" MethodDebuggerBody Method = "debugger.body" MethodDebuggerClose Method = "debugger.close" MethodDebuggerDetach Method = "debugger.detach" MethodDebuggerOpen Method = "debugger.open" MethodDebuggerOwn Method = "debugger.own" MethodDebuggerRecord Method = "debugger.record" MethodDebuggerSend Method = "debugger.send" MethodDebuggerTargets Method = "debugger.targets" MethodDebuggerUserAgent Method = "debugger.userAgent" MethodDownloadsCancel Method = "downloads.cancel" MethodDownloadsDeleteFile Method = "downloads.deleteFile" MethodDownloadsErase Method = "downloads.erase" MethodDownloadsList Method = "downloads.list" MethodDownloadsPause Method = "downloads.pause" MethodDownloadsResume Method = "downloads.resume" MethodDownloadsShow Method = "downloads.show" MethodDownloadsStart Method = "downloads.start" MethodExtensionsDisable Method = "extensions.disable" MethodExtensionsEnable Method = "extensions.enable" MethodExtensionsList Method = "extensions.list" MethodExtensionsUninstall Method = "extensions.uninstall" MethodHistoryClear Method = "history.clear" MethodHistoryRemove Method = "history.remove" MethodHistorySearch Method = "history.search" MethodHistoryVisits Method = "history.visits" MethodReadingListAdd Method = "readingList.add" MethodReadingListList Method = "readingList.list" MethodReadingListMarkRead Method = "readingList.markRead" MethodReadingListRemove Method = "readingList.remove" MethodRecentList Method = "recent.list" MethodRecentRestore Method = "recent.restore" MethodScriptsDeleteRequest Method = "scripts.delete.request" MethodScriptsEditRequest Method = "scripts.edit.request" MethodScriptsInstallRequest Method = "scripts.install.request" MethodScriptsList Method = "scripts.list" MethodScriptsMetadataGet Method = "scripts.metadata.get" MethodScriptsSourceGet Method = "scripts.source.get" MethodScriptsSourceGrep Method = "scripts.source.grep" MethodScriptsToggleRequest Method = "scripts.toggle.request" MethodTabGroupsAdd Method = "tabGroups.add" MethodTabGroupsCreate Method = "tabGroups.create" MethodTabGroupsEdit Method = "tabGroups.edit" MethodTabGroupsList Method = "tabGroups.list" MethodTabGroupsUngroup Method = "tabGroups.ungroup" MethodTabsActivate Method = "tabs.activate" MethodTabsClose Method = "tabs.close" MethodTabsCurrent Method = "tabs.current" MethodTabsDuplicate Method = "tabs.duplicate" MethodTabsList Method = "tabs.list" MethodTabsMove Method = "tabs.move" MethodTabsMute Method = "tabs.mute" MethodTabsOpen Method = "tabs.open" MethodTabsPin Method = "tabs.pin" MethodTabsReload Method = "tabs.reload" MethodTabsSelect Method = "tabs.select" MethodTabsUnmute Method = "tabs.unmute" MethodTabsUnpin Method = "tabs.unpin" MethodWindowsClose Method = "windows.close" MethodWindowsFocus Method = "windows.focus" MethodWindowsList Method = "windows.list" MethodWindowsOpen Method = "windows.open" MethodWindowsState Method = "windows.state" )
type MethodMetadata ¶
type Notification ¶ added in v0.2.0
type Notification string
Notification 是扩展发给 daemon 的通知方法名。
const ( NotificationDebuggerDetached Notification = "debugger.detached" NotificationDebuggerEvent Notification = "debugger.event" NotificationDebuggerTabCreated Notification = "debugger.tabCreated" NotificationDebuggerTabRemoved Notification = "debugger.tabRemoved" NotificationDebuggerTabUpdated Notification = "debugger.tabUpdated" )
type NotificationMetadata ¶ added in v0.2.0
type NotificationMetadata struct{ Params, Peer string }
type ReadingListAddParams ¶ added in v0.2.0
type ReadingListAddResult ¶ added in v0.2.0
type ReadingListListParams ¶ added in v0.2.0
type ReadingListListResult ¶ added in v0.2.0
type ReadingListMarkReadParams ¶ added in v0.2.0
type ReadingListMarkReadResult ¶ added in v0.2.0
type ReadingListRemoveParams ¶ added in v0.2.0
type ReadingListRemoveResult ¶ added in v0.2.0
type ReadingListRemoveResult struct {
Urls []string `json:"urls"`
}
type RecentListParams ¶ added in v0.2.0
type RecentListParams struct {
Limit *int `json:"limit,omitempty"`
}
type RecentListResult ¶ added in v0.2.0
type RecentListResult struct {
ContentTrust string `json:"contentTrust"`
HasMore bool `json:"hasMore"`
Items []struct {
ClosedTime int `json:"closedTime"`
SessionId string `json:"sessionId"`
TabCount *int `json:"tabCount,omitempty"`
Title string `json:"title"`
Type string `json:"type"`
URL string `json:"url"`
} `json:"items"`
}
type RecentRestoreParams ¶ added in v0.2.0
type RecentRestoreParams struct {
SessionId *string `json:"sessionId,omitempty"`
}
type RecentRestoreResult ¶ added in v0.2.0
type ScriptMetadata ¶
type ScriptMetadata struct {
Author *string `json:"author,omitempty"`
Connects []string `json:"connects"`
ContentTrust string `json:"contentTrust"`
Crontab *string `json:"crontab,omitempty"`
Description *string `json:"description,omitempty"`
Enabled bool `json:"enabled"`
Excludes []string `json:"excludes"`
Grants []string `json:"grants"`
HasUpdateUrl bool `json:"hasUpdateUrl"`
Includes []string `json:"includes"`
Matches []string `json:"matches"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Requires []string `json:"requires"`
Resources []string `json:"resources"`
RunAt *string `json:"runAt,omitempty"`
Type string `json:"type"`
UpdatedAt string `json:"updatedAt"`
UUID string `json:"uuid"`
Version *string `json:"version,omitempty"`
}
type ScriptMutationResult ¶
type ScriptSource ¶
type ScriptSource struct {
Code string `json:"code"`
ContentTrust string `json:"contentTrust"`
EndLine int `json:"endLine"`
Name string `json:"name"`
SHA256 string `json:"sha256"`
StartLine int `json:"startLine"`
TotalLines int `json:"totalLines"`
UUID string `json:"uuid"`
Version *string `json:"version,omitempty"`
}
type ScriptSourceGrepResult ¶
type ScriptSourceGrepResult struct {
ContentTrust string `json:"contentTrust"`
Matches []struct {
After []string `json:"after"`
Before []string `json:"before"`
Line string `json:"line"`
LineNumber int `json:"lineNumber"`
} `json:"matches"`
Name string `json:"name"`
SHA256 string `json:"sha256"`
SkippedLongLines int `json:"skippedLongLines"`
TotalLines int `json:"totalLines"`
TotalMatches int `json:"totalMatches"`
Truncated bool `json:"truncated"`
UUID string `json:"uuid"`
Version *string `json:"version,omitempty"`
}
type ScriptUUIDParams ¶
type ScriptUUIDParams struct {
UUID string `json:"uuid"`
}
type ScriptsDeleteResult ¶
type ScriptsEditParams ¶
type ScriptsInstallParams ¶
type ScriptsListParams ¶
type ScriptsListParams struct {
}
type ScriptsListResult ¶
type ScriptsListResult struct {
ContentTrust string `json:"contentTrust"`
Scripts []struct {
Author *string `json:"author,omitempty"`
Description *string `json:"description,omitempty"`
Enabled bool `json:"enabled"`
HasUpdateUrl bool `json:"hasUpdateUrl"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Type string `json:"type"`
UpdatedAt string `json:"updatedAt"`
UUID string `json:"uuid"`
Version *string `json:"version,omitempty"`
} `json:"scripts"`
}
type ScriptsSourceGetParams ¶
type ScriptsSourceGrepParams ¶
type ScriptsToggleParams ¶
type ScriptsToggleResult ¶
type TabGroupsAddParams ¶ added in v0.2.0
type TabGroupsAddResult ¶ added in v0.2.0
type TabGroupsCreateParams ¶ added in v0.2.0
type TabGroupsCreateResult ¶ added in v0.2.0
type TabGroupsCreateResult struct {
GroupId int `json:"groupId"`
}
type TabGroupsEditParams ¶ added in v0.2.0
type TabGroupsEditResult ¶ added in v0.2.0
type TabGroupsEditResult struct {
GroupId int `json:"groupId"`
}
type TabGroupsListParams ¶ added in v0.2.0
type TabGroupsListParams struct {
WindowId *int `json:"windowId,omitempty"`
}
type TabGroupsListResult ¶ added in v0.2.0
type TabGroupsUngroupParams ¶ added in v0.2.0
type TabGroupsUngroupParams struct {
TabIds []int `json:"tabIds"`
}
type TabGroupsUngroupResult ¶ added in v0.2.0
type TabGroupsUngroupResult struct {
TabIds []int `json:"tabIds"`
}
type TabsActivateParams ¶ added in v0.2.0
type TabsActivateParams struct {
TabId int `json:"tabId"`
}
type TabsActivateResult ¶ added in v0.2.0
type TabsCloseParams ¶ added in v0.2.0
type TabsCloseParams struct {
TabIds []int `json:"tabIds"`
}
type TabsCloseResult ¶ added in v0.2.0
type TabsCloseResult struct {
TabIds []int `json:"tabIds"`
}
type TabsCurrentParams ¶ added in v0.2.0
type TabsCurrentParams struct {
}
type TabsCurrentResult ¶ added in v0.2.0
type TabsDuplicateParams ¶ added in v0.2.0
type TabsDuplicateParams struct {
TabId int `json:"tabId"`
}
type TabsIdsParams ¶ added in v0.2.0
type TabsIdsParams struct {
TabIds []int `json:"tabIds"`
}
type TabsIdsResult ¶ added in v0.2.0
type TabsIdsResult struct {
TabIds []int `json:"tabIds"`
}
type TabsListParams ¶ added in v0.2.0
type TabsListParams struct {
WindowId *int `json:"windowId,omitempty"`
}
type TabsListResult ¶ added in v0.2.0
type TabsMoveParams ¶ added in v0.2.0
type TabsMoveResult ¶ added in v0.2.0
type TabsMoveResult struct {
TabIds []int `json:"tabIds"`
}
type TabsOpenParams ¶ added in v0.2.0
type TabsOpenResult ¶ added in v0.2.0
type TabsOpenResult struct {
TabId int `json:"tabId"`
}
type TabsReloadParams ¶ added in v0.2.0
type WindowsCloseParams ¶ added in v0.2.0
type WindowsCloseParams struct {
WindowIds []int `json:"windowIds"`
}
type WindowsCloseResult ¶ added in v0.2.0
type WindowsCloseResult struct {
WindowIds []int `json:"windowIds"`
}
type WindowsFocusParams ¶ added in v0.2.0
type WindowsFocusParams struct {
WindowId int `json:"windowId"`
}
type WindowsFocusResult ¶ added in v0.2.0
type WindowsFocusResult struct {
WindowId int `json:"windowId"`
}
type WindowsListParams ¶ added in v0.2.0
type WindowsListParams struct {
}
type WindowsListResult ¶ added in v0.2.0
type WindowsOpenParams ¶ added in v0.2.0
type WindowsOpenResult ¶ added in v0.2.0
type WindowsOpenResult struct {
WindowId int `json:"windowId"`
}
type WindowsStateParams ¶ added in v0.2.0
type WindowsStateResult ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.