audits

package
v0.0.0-...-887ee6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 9 Imported by: 0

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

View Source
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

type AffectedFrame struct {
	FrameID cdp.FrameID `json:"frameId"`
}

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"
	BlockedByResponseReasonCoopSandboxedIFrameCannotNavigateToCoopPage       BlockedByResponseReason = "CoopSandboxedIFrameCannotNavigateToCoopPage"
	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].

See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-ContentSecurityPolicyViolationType

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

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

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

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

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"
	MixedContentResourceTypeSharedWorker   MixedContentResourceType = "SharedWorker"
	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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL