Documentation ¶
Overview ¶
Package audits provides the Chrome DevTools Protocol commands, types, and events for the Audits domain.
Audits domain allows investigation of page violations and possible improvements.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type AffectedCookie
- type AffectedFrame
- type AffectedRequest
- type BlockedByResponseIssueDetails
- type BlockedByResponseReason
- func (t BlockedByResponseReason) MarshalEasyJSON(out *jwriter.Writer)
- func (t BlockedByResponseReason) MarshalJSON() ([]byte, error)
- func (t BlockedByResponseReason) String() string
- func (t *BlockedByResponseReason) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *BlockedByResponseReason) UnmarshalJSON(buf []byte) error
- type ContentSecurityPolicyIssueDetails
- func (v ContentSecurityPolicyIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
- func (v ContentSecurityPolicyIssueDetails) MarshalJSON() ([]byte, error)
- func (v *ContentSecurityPolicyIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ContentSecurityPolicyIssueDetails) UnmarshalJSON(data []byte) error
- type ContentSecurityPolicyViolationType
- func (t ContentSecurityPolicyViolationType) MarshalEasyJSON(out *jwriter.Writer)
- func (t ContentSecurityPolicyViolationType) MarshalJSON() ([]byte, error)
- func (t ContentSecurityPolicyViolationType) String() string
- func (t *ContentSecurityPolicyViolationType) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *ContentSecurityPolicyViolationType) UnmarshalJSON(buf []byte) error
- type DisableParams
- type EnableParams
- type EventIssueAdded
- type GetEncodedResponseEncoding
- func (t GetEncodedResponseEncoding) MarshalEasyJSON(out *jwriter.Writer)
- func (t GetEncodedResponseEncoding) MarshalJSON() ([]byte, error)
- func (t GetEncodedResponseEncoding) String() string
- func (t *GetEncodedResponseEncoding) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *GetEncodedResponseEncoding) UnmarshalJSON(buf []byte) error
- type GetEncodedResponseParams
- func (p *GetEncodedResponseParams) Do(ctx context.Context) (body []byte, originalSize int64, encodedSize int64, err error)
- func (v GetEncodedResponseParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetEncodedResponseParams) MarshalJSON() ([]byte, error)
- func (v *GetEncodedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetEncodedResponseParams) UnmarshalJSON(data []byte) error
- func (p GetEncodedResponseParams) WithQuality(quality float64) *GetEncodedResponseParams
- func (p GetEncodedResponseParams) WithSizeOnly(sizeOnly bool) *GetEncodedResponseParams
- type GetEncodedResponseReturns
- type HeavyAdIssueDetails
- type HeavyAdReason
- type HeavyAdResolutionStatus
- func (t HeavyAdResolutionStatus) MarshalEasyJSON(out *jwriter.Writer)
- func (t HeavyAdResolutionStatus) MarshalJSON() ([]byte, error)
- func (t HeavyAdResolutionStatus) String() string
- func (t *HeavyAdResolutionStatus) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *HeavyAdResolutionStatus) UnmarshalJSON(buf []byte) error
- type InspectorIssue
- type InspectorIssueCode
- type InspectorIssueDetails
- type MixedContentIssueDetails
- type MixedContentResolutionStatus
- func (t MixedContentResolutionStatus) MarshalEasyJSON(out *jwriter.Writer)
- func (t MixedContentResolutionStatus) MarshalJSON() ([]byte, error)
- func (t MixedContentResolutionStatus) String() string
- func (t *MixedContentResolutionStatus) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *MixedContentResolutionStatus) UnmarshalJSON(buf []byte) error
- type MixedContentResourceType
- func (t MixedContentResourceType) MarshalEasyJSON(out *jwriter.Writer)
- func (t MixedContentResourceType) MarshalJSON() ([]byte, error)
- func (t MixedContentResourceType) String() string
- func (t *MixedContentResourceType) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *MixedContentResourceType) UnmarshalJSON(buf []byte) error
- type SameSiteCookieExclusionReason
- func (t SameSiteCookieExclusionReason) MarshalEasyJSON(out *jwriter.Writer)
- func (t SameSiteCookieExclusionReason) MarshalJSON() ([]byte, error)
- func (t SameSiteCookieExclusionReason) String() string
- func (t *SameSiteCookieExclusionReason) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *SameSiteCookieExclusionReason) UnmarshalJSON(buf []byte) error
- type SameSiteCookieIssueDetails
- type SameSiteCookieOperation
- func (t SameSiteCookieOperation) MarshalEasyJSON(out *jwriter.Writer)
- func (t SameSiteCookieOperation) MarshalJSON() ([]byte, error)
- func (t SameSiteCookieOperation) String() string
- func (t *SameSiteCookieOperation) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *SameSiteCookieOperation) UnmarshalJSON(buf []byte) error
- type SameSiteCookieWarningReason
- func (t SameSiteCookieWarningReason) MarshalEasyJSON(out *jwriter.Writer)
- func (t SameSiteCookieWarningReason) MarshalJSON() ([]byte, error)
- func (t SameSiteCookieWarningReason) String() string
- func (t *SameSiteCookieWarningReason) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *SameSiteCookieWarningReason) UnmarshalJSON(buf []byte) error
Constants ¶
const ( CommandGetEncodedResponse = "Audits.getEncodedResponse" CommandDisable = "Audits.disable" CommandEnable = "Audits.enable" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AffectedCookie ¶
type AffectedCookie struct { Name string `json:"name"` // The following three properties uniquely identify a cookie Path string `json:"path"` Domain string `json:"domain"` }
AffectedCookie information about a cookie that is affected by an inspector issue.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-AffectedCookie
func (AffectedCookie) MarshalEasyJSON ¶
func (v AffectedCookie) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AffectedCookie) MarshalJSON ¶
func (v AffectedCookie) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AffectedCookie) UnmarshalEasyJSON ¶
func (v *AffectedCookie) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AffectedCookie) UnmarshalJSON ¶
func (v *AffectedCookie) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AffectedFrame ¶
AffectedFrame information about the frame affected by an inspector issue.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-AffectedFrame
func (AffectedFrame) MarshalEasyJSON ¶
func (v AffectedFrame) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AffectedFrame) MarshalJSON ¶
func (v AffectedFrame) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AffectedFrame) UnmarshalEasyJSON ¶
func (v *AffectedFrame) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AffectedFrame) UnmarshalJSON ¶
func (v *AffectedFrame) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AffectedRequest ¶
type AffectedRequest struct { RequestID network.RequestID `json:"requestId"` // The unique request id. URL string `json:"url,omitempty"` }
AffectedRequest information about a request that is affected by an inspector issue.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-AffectedRequest
func (AffectedRequest) MarshalEasyJSON ¶
func (v AffectedRequest) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AffectedRequest) MarshalJSON ¶
func (v AffectedRequest) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AffectedRequest) UnmarshalEasyJSON ¶
func (v *AffectedRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AffectedRequest) UnmarshalJSON ¶
func (v *AffectedRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type BlockedByResponseIssueDetails ¶
type BlockedByResponseIssueDetails struct { Request *AffectedRequest `json:"request"` Frame *AffectedFrame `json:"frame,omitempty"` Reason BlockedByResponseReason `json:"reason"` }
BlockedByResponseIssueDetails details for a request that has been blocked with the BLOCKED_BY_RESPONSE code. Currently only used for COEP/COOP, but may be extended to include some CSP errors in the future.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-BlockedByResponseIssueDetails
func (BlockedByResponseIssueDetails) MarshalEasyJSON ¶
func (v BlockedByResponseIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (BlockedByResponseIssueDetails) MarshalJSON ¶
func (v BlockedByResponseIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*BlockedByResponseIssueDetails) UnmarshalEasyJSON ¶
func (v *BlockedByResponseIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BlockedByResponseIssueDetails) UnmarshalJSON ¶
func (v *BlockedByResponseIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type BlockedByResponseReason ¶
type BlockedByResponseReason string
BlockedByResponseReason enum indicating the reason a response has been blocked. These reasons are refinements of the net error BLOCKED_BY_RESPONSE.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-BlockedByResponseReason
const ( BlockedByResponseReasonCoepFrameResourceNeedsCoepHeader BlockedByResponseReason = "CoepFrameResourceNeedsCoepHeader" BlockedByResponseReasonCorpNotSameOrigin BlockedByResponseReason = "CorpNotSameOrigin" BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoep" BlockedByResponseReasonCorpNotSameSite BlockedByResponseReason = "CorpNotSameSite" )
BlockedByResponseReason values.
func (BlockedByResponseReason) MarshalEasyJSON ¶
func (t BlockedByResponseReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (BlockedByResponseReason) MarshalJSON ¶
func (t BlockedByResponseReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (BlockedByResponseReason) String ¶
func (t BlockedByResponseReason) String() string
String returns the BlockedByResponseReason as string value.
func (*BlockedByResponseReason) UnmarshalEasyJSON ¶
func (t *BlockedByResponseReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*BlockedByResponseReason) UnmarshalJSON ¶
func (t *BlockedByResponseReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type ContentSecurityPolicyIssueDetails ¶
type ContentSecurityPolicyIssueDetails struct { BlockedURL string `json:"blockedURL,omitempty"` // The url not included in allowed sources. ViolatedDirective string `json:"violatedDirective"` // Specific directive that is violated, causing the CSP issue. ContentSecurityPolicyViolationType ContentSecurityPolicyViolationType `json:"contentSecurityPolicyViolationType"` FrameAncestor *AffectedFrame `json:"frameAncestor,omitempty"` }
ContentSecurityPolicyIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-ContentSecurityPolicyIssueDetails
func (ContentSecurityPolicyIssueDetails) MarshalEasyJSON ¶
func (v ContentSecurityPolicyIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ContentSecurityPolicyIssueDetails) MarshalJSON ¶
func (v ContentSecurityPolicyIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ContentSecurityPolicyIssueDetails) UnmarshalEasyJSON ¶
func (v *ContentSecurityPolicyIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ContentSecurityPolicyIssueDetails) UnmarshalJSON ¶
func (v *ContentSecurityPolicyIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ContentSecurityPolicyViolationType ¶
type ContentSecurityPolicyViolationType string
ContentSecurityPolicyViolationType [no description].
const ( ContentSecurityPolicyViolationTypeKInlineViolation ContentSecurityPolicyViolationType = "kInlineViolation" ContentSecurityPolicyViolationTypeKEvalViolation ContentSecurityPolicyViolationType = "kEvalViolation" ContentSecurityPolicyViolationTypeKURLViolation ContentSecurityPolicyViolationType = "kURLViolation" ContentSecurityPolicyViolationTypeKTrustedTypesSinkViolation ContentSecurityPolicyViolationType = "kTrustedTypesSinkViolation" ContentSecurityPolicyViolationTypeKTrustedTypesPolicyViolation ContentSecurityPolicyViolationType = "kTrustedTypesPolicyViolation" )
ContentSecurityPolicyViolationType values.
func (ContentSecurityPolicyViolationType) MarshalEasyJSON ¶
func (t ContentSecurityPolicyViolationType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ContentSecurityPolicyViolationType) MarshalJSON ¶
func (t ContentSecurityPolicyViolationType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (ContentSecurityPolicyViolationType) String ¶
func (t ContentSecurityPolicyViolationType) String() string
String returns the ContentSecurityPolicyViolationType as string value.
func (*ContentSecurityPolicyViolationType) UnmarshalEasyJSON ¶
func (t *ContentSecurityPolicyViolationType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*ContentSecurityPolicyViolationType) UnmarshalJSON ¶
func (t *ContentSecurityPolicyViolationType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type DisableParams ¶
type DisableParams struct{}
DisableParams disables issues domain, prevents further issues from being reported to the client.
func Disable ¶
func Disable() *DisableParams
Disable disables issues domain, prevents further issues from being reported to the client.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#method-disable
func (*DisableParams) Do ¶
func (p *DisableParams) Do(ctx context.Context) (err error)
Do executes Audits.disable against the provided context.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams ¶
type EnableParams struct{}
EnableParams enables issues domain, sends the issues collected so far to the client by means of the issueAdded event.
func Enable ¶
func Enable() *EnableParams
Enable enables issues domain, sends the issues collected so far to the client by means of the issueAdded event.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#method-enable
func (*EnableParams) Do ¶
func (p *EnableParams) Do(ctx context.Context) (err error)
Do executes Audits.enable against the provided context.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventIssueAdded ¶
type EventIssueAdded struct {
Issue *InspectorIssue `json:"issue"`
}
EventIssueAdded [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#event-issueAdded
func (EventIssueAdded) MarshalEasyJSON ¶
func (v EventIssueAdded) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventIssueAdded) MarshalJSON ¶
func (v EventIssueAdded) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventIssueAdded) UnmarshalEasyJSON ¶
func (v *EventIssueAdded) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventIssueAdded) UnmarshalJSON ¶
func (v *EventIssueAdded) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetEncodedResponseEncoding ¶
type GetEncodedResponseEncoding string
GetEncodedResponseEncoding the encoding to use.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#method-getEncodedResponse
const ( GetEncodedResponseEncodingWebp GetEncodedResponseEncoding = "webp" GetEncodedResponseEncodingJpeg GetEncodedResponseEncoding = "jpeg" GetEncodedResponseEncodingPng GetEncodedResponseEncoding = "png" )
GetEncodedResponseEncoding values.
func (GetEncodedResponseEncoding) MarshalEasyJSON ¶
func (t GetEncodedResponseEncoding) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (GetEncodedResponseEncoding) MarshalJSON ¶
func (t GetEncodedResponseEncoding) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (GetEncodedResponseEncoding) String ¶
func (t GetEncodedResponseEncoding) String() string
String returns the GetEncodedResponseEncoding as string value.
func (*GetEncodedResponseEncoding) UnmarshalEasyJSON ¶
func (t *GetEncodedResponseEncoding) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*GetEncodedResponseEncoding) UnmarshalJSON ¶
func (t *GetEncodedResponseEncoding) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type GetEncodedResponseParams ¶
type GetEncodedResponseParams struct { RequestID network.RequestID `json:"requestId"` // Identifier of the network request to get content for. Encoding GetEncodedResponseEncoding `json:"encoding"` // The encoding to use. Quality float64 `json:"quality,omitempty"` // The quality of the encoding (0-1). (defaults to 1) SizeOnly bool `json:"sizeOnly,omitempty"` // Whether to only return the size information (defaults to false). }
GetEncodedResponseParams returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
func GetEncodedResponse ¶
func GetEncodedResponse(requestID network.RequestID, encoding GetEncodedResponseEncoding) *GetEncodedResponseParams
GetEncodedResponse returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#method-getEncodedResponse
parameters:
requestID - Identifier of the network request to get content for. encoding - The encoding to use.
func (*GetEncodedResponseParams) Do ¶
func (p *GetEncodedResponseParams) Do(ctx context.Context) (body []byte, originalSize int64, encodedSize int64, err error)
Do executes Audits.getEncodedResponse against the provided context.
returns:
body - The encoded body as a base64 string. Omitted if sizeOnly is true. originalSize - Size before re-encoding. encodedSize - Size after re-encoding.
func (GetEncodedResponseParams) MarshalEasyJSON ¶
func (v GetEncodedResponseParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetEncodedResponseParams) MarshalJSON ¶
func (v GetEncodedResponseParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetEncodedResponseParams) UnmarshalEasyJSON ¶
func (v *GetEncodedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetEncodedResponseParams) UnmarshalJSON ¶
func (v *GetEncodedResponseParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (GetEncodedResponseParams) WithQuality ¶
func (p GetEncodedResponseParams) WithQuality(quality float64) *GetEncodedResponseParams
WithQuality the quality of the encoding (0-1). (defaults to 1).
func (GetEncodedResponseParams) WithSizeOnly ¶
func (p GetEncodedResponseParams) WithSizeOnly(sizeOnly bool) *GetEncodedResponseParams
WithSizeOnly whether to only return the size information (defaults to false).
type GetEncodedResponseReturns ¶
type GetEncodedResponseReturns struct { Body string `json:"body,omitempty"` // The encoded body as a base64 string. Omitted if sizeOnly is true. OriginalSize int64 `json:"originalSize,omitempty"` // Size before re-encoding. EncodedSize int64 `json:"encodedSize,omitempty"` // Size after re-encoding. }
GetEncodedResponseReturns return values.
func (GetEncodedResponseReturns) MarshalEasyJSON ¶
func (v GetEncodedResponseReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetEncodedResponseReturns) MarshalJSON ¶
func (v GetEncodedResponseReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetEncodedResponseReturns) UnmarshalEasyJSON ¶
func (v *GetEncodedResponseReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetEncodedResponseReturns) UnmarshalJSON ¶
func (v *GetEncodedResponseReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HeavyAdIssueDetails ¶
type HeavyAdIssueDetails struct { Resolution HeavyAdResolutionStatus `json:"resolution"` // The resolution status, either blocking the content or warning. Reason HeavyAdReason `json:"reason"` // The reason the ad was blocked, total network or cpu or peak cpu. Frame *AffectedFrame `json:"frame"` // The frame that was blocked. }
HeavyAdIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-HeavyAdIssueDetails
func (HeavyAdIssueDetails) MarshalEasyJSON ¶
func (v HeavyAdIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HeavyAdIssueDetails) MarshalJSON ¶
func (v HeavyAdIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HeavyAdIssueDetails) UnmarshalEasyJSON ¶
func (v *HeavyAdIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HeavyAdIssueDetails) UnmarshalJSON ¶
func (v *HeavyAdIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HeavyAdReason ¶
type HeavyAdReason string
HeavyAdReason [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-HeavyAdReason
const ( HeavyAdReasonNetworkTotalLimit HeavyAdReason = "NetworkTotalLimit" HeavyAdReasonCPUTotalLimit HeavyAdReason = "CpuTotalLimit" HeavyAdReasonCPUPeakLimit HeavyAdReason = "CpuPeakLimit" )
HeavyAdReason values.
func (HeavyAdReason) MarshalEasyJSON ¶
func (t HeavyAdReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (HeavyAdReason) MarshalJSON ¶
func (t HeavyAdReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (HeavyAdReason) String ¶
func (t HeavyAdReason) String() string
String returns the HeavyAdReason as string value.
func (*HeavyAdReason) UnmarshalEasyJSON ¶
func (t *HeavyAdReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*HeavyAdReason) UnmarshalJSON ¶
func (t *HeavyAdReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type HeavyAdResolutionStatus ¶
type HeavyAdResolutionStatus string
HeavyAdResolutionStatus [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-HeavyAdResolutionStatus
const ( HeavyAdResolutionStatusHeavyAdBlocked HeavyAdResolutionStatus = "HeavyAdBlocked" HeavyAdResolutionStatusHeavyAdWarning HeavyAdResolutionStatus = "HeavyAdWarning" )
HeavyAdResolutionStatus values.
func (HeavyAdResolutionStatus) MarshalEasyJSON ¶
func (t HeavyAdResolutionStatus) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (HeavyAdResolutionStatus) MarshalJSON ¶
func (t HeavyAdResolutionStatus) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (HeavyAdResolutionStatus) String ¶
func (t HeavyAdResolutionStatus) String() string
String returns the HeavyAdResolutionStatus as string value.
func (*HeavyAdResolutionStatus) UnmarshalEasyJSON ¶
func (t *HeavyAdResolutionStatus) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*HeavyAdResolutionStatus) UnmarshalJSON ¶
func (t *HeavyAdResolutionStatus) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type InspectorIssue ¶
type InspectorIssue struct { Code InspectorIssueCode `json:"code"` Details *InspectorIssueDetails `json:"details"` }
InspectorIssue an inspector issue reported from the back-end.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-InspectorIssue
func (InspectorIssue) MarshalEasyJSON ¶
func (v InspectorIssue) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (InspectorIssue) MarshalJSON ¶
func (v InspectorIssue) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*InspectorIssue) UnmarshalEasyJSON ¶
func (v *InspectorIssue) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*InspectorIssue) UnmarshalJSON ¶
func (v *InspectorIssue) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type InspectorIssueCode ¶
type InspectorIssueCode string
InspectorIssueCode a unique identifier for the type of issue. Each type may use one of the optional fields in InspectorIssueDetails to convey more specific information about the kind of issue.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-InspectorIssueCode
const ( InspectorIssueCodeSameSiteCookieIssue InspectorIssueCode = "SameSiteCookieIssue" InspectorIssueCodeMixedContentIssue InspectorIssueCode = "MixedContentIssue" InspectorIssueCodeBlockedByResponseIssue InspectorIssueCode = "BlockedByResponseIssue" InspectorIssueCodeHeavyAdIssue InspectorIssueCode = "HeavyAdIssue" InspectorIssueCodeContentSecurityPolicyIssue InspectorIssueCode = "ContentSecurityPolicyIssue" )
InspectorIssueCode values.
func (InspectorIssueCode) MarshalEasyJSON ¶
func (t InspectorIssueCode) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (InspectorIssueCode) MarshalJSON ¶
func (t InspectorIssueCode) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (InspectorIssueCode) String ¶
func (t InspectorIssueCode) String() string
String returns the InspectorIssueCode as string value.
func (*InspectorIssueCode) UnmarshalEasyJSON ¶
func (t *InspectorIssueCode) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*InspectorIssueCode) UnmarshalJSON ¶
func (t *InspectorIssueCode) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type InspectorIssueDetails ¶
type InspectorIssueDetails struct { SameSiteCookieIssueDetails *SameSiteCookieIssueDetails `json:"sameSiteCookieIssueDetails,omitempty"` MixedContentIssueDetails *MixedContentIssueDetails `json:"mixedContentIssueDetails,omitempty"` BlockedByResponseIssueDetails *BlockedByResponseIssueDetails `json:"blockedByResponseIssueDetails,omitempty"` HeavyAdIssueDetails *HeavyAdIssueDetails `json:"heavyAdIssueDetails,omitempty"` ContentSecurityPolicyIssueDetails *ContentSecurityPolicyIssueDetails `json:"contentSecurityPolicyIssueDetails,omitempty"` }
InspectorIssueDetails this struct holds a list of optional fields with additional information specific to the kind of issue. When adding a new issue code, please also add a new optional field to this type.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-InspectorIssueDetails
func (InspectorIssueDetails) MarshalEasyJSON ¶
func (v InspectorIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (InspectorIssueDetails) MarshalJSON ¶
func (v InspectorIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*InspectorIssueDetails) UnmarshalEasyJSON ¶
func (v *InspectorIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*InspectorIssueDetails) UnmarshalJSON ¶
func (v *InspectorIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type MixedContentIssueDetails ¶
type MixedContentIssueDetails struct { ResourceType MixedContentResourceType `json:"resourceType,omitempty"` // The type of resource causing the mixed content issue (css, js, iframe, form,...). Marked as optional because it is mapped to from blink::mojom::RequestContextType, which will be replaced by network::mojom::RequestDestination ResolutionStatus MixedContentResolutionStatus `json:"resolutionStatus"` // The way the mixed content issue is being resolved. InsecureURL string `json:"insecureURL"` // The unsafe http url causing the mixed content issue. MainResourceURL string `json:"mainResourceURL"` // The url responsible for the call to an unsafe url. Request *AffectedRequest `json:"request,omitempty"` // The mixed content request. Does not always exist (e.g. for unsafe form submission urls). Frame *AffectedFrame `json:"frame,omitempty"` // Optional because not every mixed content issue is necessarily linked to a frame. }
MixedContentIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-MixedContentIssueDetails
func (MixedContentIssueDetails) MarshalEasyJSON ¶
func (v MixedContentIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (MixedContentIssueDetails) MarshalJSON ¶
func (v MixedContentIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*MixedContentIssueDetails) UnmarshalEasyJSON ¶
func (v *MixedContentIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*MixedContentIssueDetails) UnmarshalJSON ¶
func (v *MixedContentIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type MixedContentResolutionStatus ¶
type MixedContentResolutionStatus string
MixedContentResolutionStatus [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-MixedContentResolutionStatus
const ( MixedContentResolutionStatusMixedContentBlocked MixedContentResolutionStatus = "MixedContentBlocked" MixedContentResolutionStatusMixedContentAutomaticallyUpgraded MixedContentResolutionStatus = "MixedContentAutomaticallyUpgraded" MixedContentResolutionStatusMixedContentWarning MixedContentResolutionStatus = "MixedContentWarning" )
MixedContentResolutionStatus values.
func (MixedContentResolutionStatus) MarshalEasyJSON ¶
func (t MixedContentResolutionStatus) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (MixedContentResolutionStatus) MarshalJSON ¶
func (t MixedContentResolutionStatus) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (MixedContentResolutionStatus) String ¶
func (t MixedContentResolutionStatus) String() string
String returns the MixedContentResolutionStatus as string value.
func (*MixedContentResolutionStatus) UnmarshalEasyJSON ¶
func (t *MixedContentResolutionStatus) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*MixedContentResolutionStatus) UnmarshalJSON ¶
func (t *MixedContentResolutionStatus) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type MixedContentResourceType ¶
type MixedContentResourceType string
MixedContentResourceType [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-MixedContentResourceType
const ( MixedContentResourceTypeAudio MixedContentResourceType = "Audio" MixedContentResourceTypeBeacon MixedContentResourceType = "Beacon" MixedContentResourceTypeCSPReport MixedContentResourceType = "CSPReport" MixedContentResourceTypeDownload MixedContentResourceType = "Download" MixedContentResourceTypeEventSource MixedContentResourceType = "EventSource" MixedContentResourceTypeFavicon MixedContentResourceType = "Favicon" MixedContentResourceTypeFont MixedContentResourceType = "Font" MixedContentResourceTypeForm MixedContentResourceType = "Form" MixedContentResourceTypeFrame MixedContentResourceType = "Frame" MixedContentResourceTypeImage MixedContentResourceType = "Image" MixedContentResourceTypeImport MixedContentResourceType = "Import" MixedContentResourceTypeManifest MixedContentResourceType = "Manifest" MixedContentResourceTypePing MixedContentResourceType = "Ping" MixedContentResourceTypePluginData MixedContentResourceType = "PluginData" MixedContentResourceTypePluginResource MixedContentResourceType = "PluginResource" MixedContentResourceTypePrefetch MixedContentResourceType = "Prefetch" MixedContentResourceTypeResource MixedContentResourceType = "Resource" MixedContentResourceTypeScript MixedContentResourceType = "Script" MixedContentResourceTypeServiceWorker MixedContentResourceType = "ServiceWorker" MixedContentResourceTypeStylesheet MixedContentResourceType = "Stylesheet" MixedContentResourceTypeTrack MixedContentResourceType = "Track" MixedContentResourceTypeVideo MixedContentResourceType = "Video" MixedContentResourceTypeWorker MixedContentResourceType = "Worker" MixedContentResourceTypeXMLHTTPRequest MixedContentResourceType = "XMLHttpRequest" MixedContentResourceTypeXSLT MixedContentResourceType = "XSLT" )
MixedContentResourceType values.
func (MixedContentResourceType) MarshalEasyJSON ¶
func (t MixedContentResourceType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (MixedContentResourceType) MarshalJSON ¶
func (t MixedContentResourceType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (MixedContentResourceType) String ¶
func (t MixedContentResourceType) String() string
String returns the MixedContentResourceType as string value.
func (*MixedContentResourceType) UnmarshalEasyJSON ¶
func (t *MixedContentResourceType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*MixedContentResourceType) UnmarshalJSON ¶
func (t *MixedContentResourceType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type SameSiteCookieExclusionReason ¶
type SameSiteCookieExclusionReason string
SameSiteCookieExclusionReason [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SameSiteCookieExclusionReason
const ( SameSiteCookieExclusionReasonExcludeSameSiteUnspecifiedTreatedAsLax SameSiteCookieExclusionReason = "ExcludeSameSiteUnspecifiedTreatedAsLax" SameSiteCookieExclusionReasonExcludeSameSiteNoneInsecure SameSiteCookieExclusionReason = "ExcludeSameSiteNoneInsecure" )
SameSiteCookieExclusionReason values.
func (SameSiteCookieExclusionReason) MarshalEasyJSON ¶
func (t SameSiteCookieExclusionReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (SameSiteCookieExclusionReason) MarshalJSON ¶
func (t SameSiteCookieExclusionReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (SameSiteCookieExclusionReason) String ¶
func (t SameSiteCookieExclusionReason) String() string
String returns the SameSiteCookieExclusionReason as string value.
func (*SameSiteCookieExclusionReason) UnmarshalEasyJSON ¶
func (t *SameSiteCookieExclusionReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*SameSiteCookieExclusionReason) UnmarshalJSON ¶
func (t *SameSiteCookieExclusionReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type SameSiteCookieIssueDetails ¶
type SameSiteCookieIssueDetails struct { Cookie *AffectedCookie `json:"cookie"` CookieWarningReasons []SameSiteCookieWarningReason `json:"cookieWarningReasons"` CookieExclusionReasons []SameSiteCookieExclusionReason `json:"cookieExclusionReasons"` Operation SameSiteCookieOperation `json:"operation"` // Optionally identifies the site-for-cookies and the cookie url, which may be used by the front-end as additional context. SiteForCookies string `json:"siteForCookies,omitempty"` CookieURL string `json:"cookieUrl,omitempty"` Request *AffectedRequest `json:"request,omitempty"` }
SameSiteCookieIssueDetails this information is currently necessary, as the front-end has a difficult time finding a specific cookie. With this, we can convey specific error information without the cookie.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SameSiteCookieIssueDetails
func (SameSiteCookieIssueDetails) MarshalEasyJSON ¶
func (v SameSiteCookieIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SameSiteCookieIssueDetails) MarshalJSON ¶
func (v SameSiteCookieIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SameSiteCookieIssueDetails) UnmarshalEasyJSON ¶
func (v *SameSiteCookieIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SameSiteCookieIssueDetails) UnmarshalJSON ¶
func (v *SameSiteCookieIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SameSiteCookieOperation ¶
type SameSiteCookieOperation string
SameSiteCookieOperation [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SameSiteCookieOperation
const ( SameSiteCookieOperationSetCookie SameSiteCookieOperation = "SetCookie" SameSiteCookieOperationReadCookie SameSiteCookieOperation = "ReadCookie" )
SameSiteCookieOperation values.
func (SameSiteCookieOperation) MarshalEasyJSON ¶
func (t SameSiteCookieOperation) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (SameSiteCookieOperation) MarshalJSON ¶
func (t SameSiteCookieOperation) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (SameSiteCookieOperation) String ¶
func (t SameSiteCookieOperation) String() string
String returns the SameSiteCookieOperation as string value.
func (*SameSiteCookieOperation) UnmarshalEasyJSON ¶
func (t *SameSiteCookieOperation) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*SameSiteCookieOperation) UnmarshalJSON ¶
func (t *SameSiteCookieOperation) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type SameSiteCookieWarningReason ¶
type SameSiteCookieWarningReason string
SameSiteCookieWarningReason [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SameSiteCookieWarningReason
const ( SameSiteCookieWarningReasonWarnSameSiteUnspecifiedCrossSiteContext SameSiteCookieWarningReason = "WarnSameSiteUnspecifiedCrossSiteContext" SameSiteCookieWarningReasonWarnSameSiteNoneInsecure SameSiteCookieWarningReason = "WarnSameSiteNoneInsecure" SameSiteCookieWarningReasonWarnSameSiteUnspecifiedLaxAllowUnsafe SameSiteCookieWarningReason = "WarnSameSiteUnspecifiedLaxAllowUnsafe" SameSiteCookieWarningReasonWarnSameSiteStrictLaxDowngradeStrict SameSiteCookieWarningReason = "WarnSameSiteStrictLaxDowngradeStrict" SameSiteCookieWarningReasonWarnSameSiteStrictCrossDowngradeStrict SameSiteCookieWarningReason = "WarnSameSiteStrictCrossDowngradeStrict" SameSiteCookieWarningReasonWarnSameSiteStrictCrossDowngradeLax SameSiteCookieWarningReason = "WarnSameSiteStrictCrossDowngradeLax" SameSiteCookieWarningReasonWarnSameSiteLaxCrossDowngradeStrict SameSiteCookieWarningReason = "WarnSameSiteLaxCrossDowngradeStrict" SameSiteCookieWarningReasonWarnSameSiteLaxCrossDowngradeLax SameSiteCookieWarningReason = "WarnSameSiteLaxCrossDowngradeLax" )
SameSiteCookieWarningReason values.
func (SameSiteCookieWarningReason) MarshalEasyJSON ¶
func (t SameSiteCookieWarningReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (SameSiteCookieWarningReason) MarshalJSON ¶
func (t SameSiteCookieWarningReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (SameSiteCookieWarningReason) String ¶
func (t SameSiteCookieWarningReason) String() string
String returns the SameSiteCookieWarningReason as string value.
func (*SameSiteCookieWarningReason) UnmarshalEasyJSON ¶
func (t *SameSiteCookieWarningReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*SameSiteCookieWarningReason) UnmarshalJSON ¶
func (t *SameSiteCookieWarningReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.