Versions in this module Expand all Collapse all v0 v0.37.1 Dec 15, 2020 Changes in this version + type PagespeedApiFormatStringV2 struct + Args []*PagespeedApiFormatStringV2Args + ForceSendFields []string + Format string + NullFields []string + func (s *PagespeedApiFormatStringV2) MarshalJSON() ([]byte, error) + type PagespeedApiFormatStringV2Args struct + ForceSendFields []string + Key string + NullFields []string + Rects []*PagespeedApiFormatStringV2ArgsRects + SecondaryRects []*PagespeedApiFormatStringV2ArgsSecondaryRects + Type string + Value string + func (s *PagespeedApiFormatStringV2Args) MarshalJSON() ([]byte, error) + type PagespeedApiFormatStringV2ArgsRects struct + ForceSendFields []string + Height int64 + Left int64 + NullFields []string + Top int64 + Width int64 + func (s *PagespeedApiFormatStringV2ArgsRects) MarshalJSON() ([]byte, error) + type PagespeedApiFormatStringV2ArgsSecondaryRects struct + ForceSendFields []string + Height int64 + Left int64 + NullFields []string + Top int64 + Width int64 + func (s *PagespeedApiFormatStringV2ArgsSecondaryRects) MarshalJSON() ([]byte, error) + type PagespeedApiImageV2 struct + Data string + ForceSendFields []string + Height int64 + Key string + MimeType string + NullFields []string + PageRect *PagespeedApiImageV2PageRect + Width int64 + func (s *PagespeedApiImageV2) MarshalJSON() ([]byte, error) + type PagespeedApiImageV2PageRect struct + ForceSendFields []string + Height int64 + Left int64 + NullFields []string + Top int64 + Width int64 + func (s *PagespeedApiImageV2PageRect) MarshalJSON() ([]byte, error) + type PagespeedapiRunpagespeedCall struct + func (c *PagespeedapiRunpagespeedCall) Context(ctx context.Context) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*Result, error) + func (c *PagespeedapiRunpagespeedCall) Fields(s ...googleapi.Field) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) FilterThirdPartyResources(filterThirdPartyResources bool) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Header() http.Header + func (c *PagespeedapiRunpagespeedCall) IfNoneMatch(entityTag string) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Locale(locale string) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Rule(rule ...string) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Screenshot(screenshot bool) *PagespeedapiRunpagespeedCall + func (c *PagespeedapiRunpagespeedCall) Strategy(strategy string) *PagespeedapiRunpagespeedCall + type PagespeedapiService struct + func NewPagespeedapiService(s *Service) *PagespeedapiService + func (r *PagespeedapiService) Runpagespeed(url string) *PagespeedapiRunpagespeedCall + type Result struct + CaptchaResult string + ForceSendFields []string + FormattedResults *ResultFormattedResults + Id string + InvalidRules []string + Kind string + NullFields []string + PageStats *ResultPageStats + ResponseCode int64 + RuleGroups map[string]ResultRuleGroups + Screenshot *PagespeedApiImageV2 + Title string + Version *ResultVersion + func (s *Result) MarshalJSON() ([]byte, error) + type ResultFormattedResults struct + ForceSendFields []string + Locale string + NullFields []string + RuleResults map[string]ResultFormattedResultsRuleResults + func (s *ResultFormattedResults) MarshalJSON() ([]byte, error) + type ResultFormattedResultsRuleResults struct + ForceSendFields []string + Groups []string + LocalizedRuleName string + NullFields []string + RuleImpact float64 + Summary *PagespeedApiFormatStringV2 + UrlBlocks []*ResultFormattedResultsRuleResultsUrlBlocks + func (s *ResultFormattedResultsRuleResults) MarshalJSON() ([]byte, error) + func (s *ResultFormattedResultsRuleResults) UnmarshalJSON(data []byte) error + type ResultFormattedResultsRuleResultsUrlBlocks struct + ForceSendFields []string + Header *PagespeedApiFormatStringV2 + NullFields []string + Urls []*ResultFormattedResultsRuleResultsUrlBlocksUrls + func (s *ResultFormattedResultsRuleResultsUrlBlocks) MarshalJSON() ([]byte, error) + type ResultFormattedResultsRuleResultsUrlBlocksUrls struct + Details []*PagespeedApiFormatStringV2 + ForceSendFields []string + NullFields []string + Result *PagespeedApiFormatStringV2 + func (s *ResultFormattedResultsRuleResultsUrlBlocksUrls) MarshalJSON() ([]byte, error) + type ResultPageStats struct + CssResponseBytes int64 + FlashResponseBytes int64 + ForceSendFields []string + HtmlResponseBytes int64 + ImageResponseBytes int64 + JavascriptResponseBytes int64 + NullFields []string + NumberCssResources int64 + NumberHosts int64 + NumberJsResources int64 + NumberResources int64 + NumberStaticResources int64 + OtherResponseBytes int64 + TextResponseBytes int64 + TotalRequestBytes int64 + func (s *ResultPageStats) MarshalJSON() ([]byte, error) + type ResultRuleGroups struct + ForceSendFields []string + NullFields []string + Score int64 + func (s *ResultRuleGroups) MarshalJSON() ([]byte, error) + type ResultVersion struct + ForceSendFields []string + Major int64 + Minor int64 + NullFields []string + func (s *ResultVersion) 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)