// Package domstorage provides the Chrome DevTools Protocol // commands, types, and events for the DOMStorage domain. // // Query and modify DOM storage. // // Generated by the cdproto-gen command.
package domstorage // Code generated by cdproto-gen. DO NOT EDIT. import ( ) // ClearParams [no description]. type ClearParams struct { StorageID *StorageID `json:"storageId"` } // Clear [no description]. // // See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-clear // // parameters: // // storageID func ( *StorageID) *ClearParams { return &ClearParams{ StorageID: , } } // Do executes DOMStorage.clear against the provided context. func ( *ClearParams) ( context.Context) ( error) { return cdp.Execute(, CommandClear, , nil) } // DisableParams disables storage tracking, prevents storage events from // being sent to the client. type DisableParams struct{} // Disable disables storage tracking, prevents storage events from being sent // to the client. // // See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-disable func () *DisableParams { return &DisableParams{} } // Do executes DOMStorage.disable against the provided context. func ( *DisableParams) ( context.Context) ( error) { return cdp.Execute(, CommandDisable, nil, nil) } // EnableParams enables storage tracking, storage events will now be // delivered to the client. type EnableParams struct{} // Enable enables storage tracking, storage events will now be delivered to // the client. // // See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-enable func () *EnableParams { return &EnableParams{} } // Do executes DOMStorage.enable against the provided context. func ( *EnableParams) ( context.Context) ( error) { return cdp.Execute(, CommandEnable, nil, nil) } // GetDOMStorageItemsParams [no description]. type GetDOMStorageItemsParams struct { StorageID *StorageID `json:"storageId"` } // GetDOMStorageItems [no description]. // // See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-getDOMStorageItems // // parameters: // // storageID func ( *StorageID) *GetDOMStorageItemsParams { return &GetDOMStorageItemsParams{ StorageID: , } } // GetDOMStorageItemsReturns return values. type GetDOMStorageItemsReturns struct { Entries []Item `json:"entries,omitempty"` } // Do executes DOMStorage.getDOMStorageItems against the provided context. // // returns: // // entries func ( *GetDOMStorageItemsParams) ( context.Context) ( []Item, error) { // execute var GetDOMStorageItemsReturns = cdp.Execute(, CommandGetDOMStorageItems, , &) if != nil { return nil, } return .Entries, nil } // RemoveDOMStorageItemParams [no description]. type RemoveDOMStorageItemParams struct { StorageID *StorageID `json:"storageId"` Key string `json:"key"` } // RemoveDOMStorageItem [no description]. // // See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-removeDOMStorageItem // // parameters: // // storageID // key func ( *StorageID, string) *RemoveDOMStorageItemParams { return &RemoveDOMStorageItemParams{ StorageID: , Key: , } } // Do executes DOMStorage.removeDOMStorageItem against the provided context. func ( *RemoveDOMStorageItemParams) ( context.Context) ( error) { return cdp.Execute(, CommandRemoveDOMStorageItem, , nil) } // SetDOMStorageItemParams [no description]. type SetDOMStorageItemParams struct { StorageID *StorageID `json:"storageId"` Key string `json:"key"` Value string `json:"value"` } // SetDOMStorageItem [no description]. // // See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-setDOMStorageItem // // parameters: // // storageID // key // value func ( *StorageID, string, string) *SetDOMStorageItemParams { return &SetDOMStorageItemParams{ StorageID: , Key: , Value: , } } // Do executes DOMStorage.setDOMStorageItem against the provided context. func ( *SetDOMStorageItemParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetDOMStorageItem, , nil) } // Command names. const ( CommandClear = "DOMStorage.clear" CommandDisable = "DOMStorage.disable" CommandEnable = "DOMStorage.enable" CommandGetDOMStorageItems = "DOMStorage.getDOMStorageItems" CommandRemoveDOMStorageItem = "DOMStorage.removeDOMStorageItem" CommandSetDOMStorageItem = "DOMStorage.setDOMStorageItem" )