Versions in this module Expand all Collapse all v0 v0.196.2 Sep 10, 2024 Changes in this version + const OpenIDScope + type AuditRefs struct + Acronym string + ForceSendFields []string + Group string + Id string + NullFields []string + RelevantAudits []string + Weight float64 + func (s *AuditRefs) UnmarshalJSON(data []byte) error + func (s AuditRefs) MarshalJSON() ([]byte, error) + type Bucket struct + ForceSendFields []string + Max int64 + Min int64 + NullFields []string + Proportion float64 + func (s *Bucket) UnmarshalJSON(data []byte) error + func (s Bucket) MarshalJSON() ([]byte, error) + type Categories struct + Accessibility *LighthouseCategoryV5 + BestPractices *LighthouseCategoryV5 + ForceSendFields []string + NullFields []string + Performance *LighthouseCategoryV5 + Pwa *LighthouseCategoryV5 + Seo *LighthouseCategoryV5 + func (s Categories) MarshalJSON() ([]byte, error) + type CategoryGroupV5 struct + Description string + ForceSendFields []string + NullFields []string + Title string + func (s CategoryGroupV5) MarshalJSON() ([]byte, error) + type ConfigSettings struct + Channel string + EmulatedFormFactor string + ForceSendFields []string + FormFactor string + Locale string + NullFields []string + OnlyCategories interface{} + func (s ConfigSettings) MarshalJSON() ([]byte, error) + type Environment struct + BenchmarkIndex float64 + Credits map[string]string + ForceSendFields []string + HostUserAgent string + NetworkUserAgent string + NullFields []string + func (s *Environment) UnmarshalJSON(data []byte) error + func (s Environment) MarshalJSON() ([]byte, error) + type I18n struct + ForceSendFields []string + NullFields []string + RendererFormattedStrings *RendererFormattedStrings + func (s I18n) MarshalJSON() ([]byte, error) + type LhrEntity struct + Category string + ForceSendFields []string + Homepage string + IsFirstParty bool + IsUnrecognized bool + Name string + NullFields []string + Origins []string + func (s LhrEntity) MarshalJSON() ([]byte, error) + type LighthouseAuditResultV5 struct + Description string + Details googleapi.RawMessage + DisplayValue string + ErrorMessage string + Explanation string + ForceSendFields []string + Id string + MetricSavings *MetricSavings + NullFields []string + NumericUnit string + NumericValue float64 + Score interface{} + ScoreDisplayMode string + Title string + Warnings interface{} + func (s *LighthouseAuditResultV5) UnmarshalJSON(data []byte) error + func (s LighthouseAuditResultV5) MarshalJSON() ([]byte, error) + type LighthouseCategoryV5 struct + AuditRefs []*AuditRefs + Description string + ForceSendFields []string + Id string + ManualDescription string + NullFields []string + Score interface{} + Title string + func (s LighthouseCategoryV5) MarshalJSON() ([]byte, error) + type LighthouseResultV5 struct + Audits map[string]LighthouseAuditResultV5 + Categories *Categories + CategoryGroups map[string]CategoryGroupV5 + ConfigSettings *ConfigSettings + Entities []*LhrEntity + Environment *Environment + FetchTime string + FinalDisplayedUrl string + FinalUrl string + ForceSendFields []string + FullPageScreenshot interface{} + I18n *I18n + LighthouseVersion string + MainDocumentUrl string + NullFields []string + RequestedUrl string + RunWarnings []interface{} + RuntimeError *RuntimeError + StackPacks []*StackPack + Timing *Timing + UserAgent string + func (s LighthouseResultV5) MarshalJSON() ([]byte, error) + type MetricSavings struct + CLS float64 + FCP float64 + ForceSendFields []string + INP float64 + LCP float64 + NullFields []string + TBT float64 + func (s *MetricSavings) UnmarshalJSON(data []byte) error + func (s MetricSavings) MarshalJSON() ([]byte, error) + type PagespeedApiLoadingExperienceV5 struct + ForceSendFields []string + Id string + InitialUrl string + Metrics map[string]UserPageLoadMetricV5 + NullFields []string + OriginFallback bool + OverallCategory string + func (s PagespeedApiLoadingExperienceV5) MarshalJSON() ([]byte, error) + type PagespeedApiPagespeedResponseV5 struct + AnalysisUTCTimestamp string + CaptchaResult string + ForceSendFields []string + Id string + Kind string + LighthouseResult *LighthouseResultV5 + LoadingExperience *PagespeedApiLoadingExperienceV5 + NullFields []string + OriginLoadingExperience *PagespeedApiLoadingExperienceV5 + Version *PagespeedVersion + func (s PagespeedApiPagespeedResponseV5) MarshalJSON() ([]byte, error) + type PagespeedVersion struct + ForceSendFields []string + Major string + Minor string + NullFields []string + func (s PagespeedVersion) MarshalJSON() ([]byte, error) + type PagespeedapiRunpagespeedCall struct + func (c *PagespeedapiRunpagespeedCall) CaptchaToken(captchaToken string) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Category(category ...string) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Context(ctx context.Context) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*PagespeedApiPagespeedResponseV5, error) + func (c *PagespeedapiRunpagespeedCall) Fields(s ...googleapi.Field) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Header() http.Header + func (c *PagespeedapiRunpagespeedCall) IfNoneMatch(entityTag string) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Locale(locale string) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Strategy(strategy string) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) UtmCampaign(utmCampaign string) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) UtmSource(utmSource string) *PagespeedapiRunpagespeedCall + type PagespeedapiService struct + func NewPagespeedapiService(s *Service) *PagespeedapiService + func (r *PagespeedapiService) Runpagespeed(url string) *PagespeedapiRunpagespeedCall + type RendererFormattedStrings struct + AuditGroupExpandTooltip string + CalculatorLink string + CrcInitialNavigation string + CrcLongestDurationLabel string + DropdownCopyJSON string + DropdownDarkTheme string + DropdownPrintExpanded string + DropdownPrintSummary string + DropdownSaveGist string + DropdownSaveHTML string + DropdownSaveJSON string + DropdownViewer string + ErrorLabel string + ErrorMissingAuditInfo string + FooterIssue string + ForceSendFields []string + LabDataTitle string + LsPerformanceCategoryDescription string + ManualAuditsGroupTitle string + NotApplicableAuditsGroupTitle string + NullFields []string + OpportunityResourceColumnLabel string + OpportunitySavingsColumnLabel string + PassedAuditsGroupTitle string + RuntimeDesktopEmulation string + RuntimeMobileEmulation string + RuntimeNoEmulation string + RuntimeSettingsAxeVersion string + RuntimeSettingsBenchmark string + RuntimeSettingsCPUThrottling string + RuntimeSettingsChannel string + RuntimeSettingsDevice string + RuntimeSettingsFetchTime string + RuntimeSettingsNetworkThrottling string + RuntimeSettingsTitle string + RuntimeSettingsUA string + RuntimeSettingsUANetwork string + RuntimeSettingsUrl string + RuntimeUnknown string + ScorescaleLabel string + ShowRelevantAudits string + SnippetCollapseButtonLabel string + SnippetExpandButtonLabel string + ThirdPartyResourcesLabel string + ThrottlingProvided string + ToplevelWarningsMessage string + VarianceDisclaimer string + ViewTreemapLabel string + WarningAuditsGroupTitle string + WarningHeader string + func (s RendererFormattedStrings) MarshalJSON() ([]byte, error) + type RuntimeError struct + Code string + ForceSendFields []string + Message string + NullFields []string + func (s RuntimeError) MarshalJSON() ([]byte, error) + type Service struct + BasePath string + Pagespeedapi *PagespeedapiService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type StackPack struct + Descriptions map[string]string + ForceSendFields []string + IconDataURL string + Id string + NullFields []string + Title string + func (s StackPack) MarshalJSON() ([]byte, error) + type Timing struct + ForceSendFields []string + NullFields []string + Total float64 + func (s *Timing) UnmarshalJSON(data []byte) error + func (s Timing) MarshalJSON() ([]byte, error) + type UserPageLoadMetricV5 struct + Category string + Distributions []*Bucket + ForceSendFields []string + FormFactor string + Median int64 + MetricId string + NullFields []string + Percentile int64 + func (s UserPageLoadMetricV5) MarshalJSON() ([]byte, error)