// Package security provides the Chrome DevTools Protocol// commands, types, and events for the Security domain.//// Security.//// Generated by the cdproto-gen command.
package security// Code generated by cdproto-gen. DO NOT EDIT.import ()// DisableParams disables tracking security state changes.typeDisableParamsstruct{}// Disable disables tracking security state changes.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Security#method-disablefunc () *DisableParams {return &DisableParams{}}// Do executes Security.disable against the provided context.func ( *DisableParams) ( context.Context) ( error) {returncdp.Execute(, CommandDisable, nil, nil)}// EnableParams enables tracking security state changes.typeEnableParamsstruct{}// Enable enables tracking security state changes.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Security#method-enablefunc () *EnableParams {return &EnableParams{}}// Do executes Security.enable against the provided context.func ( *EnableParams) ( context.Context) ( error) {returncdp.Execute(, CommandEnable, nil, nil)}// SetIgnoreCertificateErrorsParams enable/disable whether all certificate// errors should be ignored.typeSetIgnoreCertificateErrorsParamsstruct { Ignore bool`json:"ignore"`// If true, all certificate errors will be ignored.}// SetIgnoreCertificateErrors enable/disable whether all certificate errors// should be ignored.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Security#method-setIgnoreCertificateErrors//// parameters://// ignore - If true, all certificate errors will be ignored.func ( bool) *SetIgnoreCertificateErrorsParams {return &SetIgnoreCertificateErrorsParams{Ignore: , }}// Do executes Security.setIgnoreCertificateErrors against the provided context.func ( *SetIgnoreCertificateErrorsParams) ( context.Context) ( error) {returncdp.Execute(, CommandSetIgnoreCertificateErrors, , nil)}// Command names.const (CommandDisable = "Security.disable"CommandEnable = "Security.enable"CommandSetIgnoreCertificateErrors = "Security.setIgnoreCertificateErrors")
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.