Versions in this module Expand all Collapse all v0 v0.9.0 Jul 18, 2017 Changes in this version + func NewClient(conn *rpcc.Conn) *domainClient + type AuthChallenge struct + Origin string + Realm string + Scheme string + Source *string + type AuthChallengeResponse struct + Password *string + Response string + Username *string + type BlockedReason int + const BlockedReasonCsp + const BlockedReasonInspector + const BlockedReasonMixedContent + const BlockedReasonNotSet + const BlockedReasonOrigin + const BlockedReasonOther + const BlockedReasonSubresourceFilter + func (e *BlockedReason) UnmarshalJSON(data []byte) error + func (e BlockedReason) MarshalJSON() ([]byte, error) + func (e BlockedReason) String() string + func (e BlockedReason) Valid() bool + type CachedResource struct + BodySize float64 + Response *Response + Type ResourceType + URL string + type CanClearBrowserCacheReply struct + Result bool + type CanClearBrowserCookiesReply struct + Result bool + type CanEmulateNetworkConditionsReply struct + Result bool + type ConnectionType int + const ConnectionTypeBluetooth + const ConnectionTypeCellular2g + const ConnectionTypeCellular3g + const ConnectionTypeCellular4g + const ConnectionTypeEthernet + const ConnectionTypeNone + const ConnectionTypeNotSet + const ConnectionTypeOther + const ConnectionTypeWifi + const ConnectionTypeWimax + func (e *ConnectionType) UnmarshalJSON(data []byte) error + func (e ConnectionType) MarshalJSON() ([]byte, error) + func (e ConnectionType) String() string + func (e ConnectionType) Valid() bool + type ContinueInterceptedRequestArgs struct + AuthChallengeResponse *AuthChallengeResponse + ErrorReason ErrorReason + Headers Headers + InterceptionID InterceptionID + Method *string + PostData *string + RawResponse *string + URL *string + func NewContinueInterceptedRequestArgs(interceptionID InterceptionID) *ContinueInterceptedRequestArgs + func (a *ContinueInterceptedRequestArgs) SetAuthChallengeResponse(authChallengeResponse AuthChallengeResponse) *ContinueInterceptedRequestArgs + func (a *ContinueInterceptedRequestArgs) SetErrorReason(errorReason ErrorReason) *ContinueInterceptedRequestArgs + func (a *ContinueInterceptedRequestArgs) SetHeaders(headers Headers) *ContinueInterceptedRequestArgs + func (a *ContinueInterceptedRequestArgs) SetMethod(method string) *ContinueInterceptedRequestArgs + func (a *ContinueInterceptedRequestArgs) SetPostData(postData string) *ContinueInterceptedRequestArgs + func (a *ContinueInterceptedRequestArgs) SetRawResponse(rawResponse string) *ContinueInterceptedRequestArgs + func (a *ContinueInterceptedRequestArgs) SetURL(url string) *ContinueInterceptedRequestArgs + type Cookie struct + Domain string + Expires float64 + HTTPOnly bool + Name string + Path string + SameSite CookieSameSite + Secure bool + Session bool + Size int + Value string + type CookieSameSite int + const CookieSameSiteLax + const CookieSameSiteNotSet + const CookieSameSiteStrict + func (e *CookieSameSite) UnmarshalJSON(data []byte) error + func (e CookieSameSite) MarshalJSON() ([]byte, error) + func (e CookieSameSite) String() string + func (e CookieSameSite) Valid() bool + type DataReceivedClient interface + Recv func() (*DataReceivedReply, error) + type DataReceivedReply struct + DataLength int + EncodedDataLength int + RequestID RequestID + Timestamp MonotonicTime + type DeleteCookieArgs struct + CookieName string + URL string + func NewDeleteCookieArgs(cookieName string, url string) *DeleteCookieArgs + type EmulateNetworkConditionsArgs struct + ConnectionType ConnectionType + DownloadThroughput float64 + Latency float64 + Offline bool + UploadThroughput float64 + func NewEmulateNetworkConditionsArgs(offline bool, latency float64, downloadThroughput float64, ...) *EmulateNetworkConditionsArgs + func (a *EmulateNetworkConditionsArgs) SetConnectionType(connectionType ConnectionType) *EmulateNetworkConditionsArgs + type EnableArgs struct + MaxResourceBufferSize *int + MaxTotalBufferSize *int + func NewEnableArgs() *EnableArgs + func (a *EnableArgs) SetMaxResourceBufferSize(maxResourceBufferSize int) *EnableArgs + func (a *EnableArgs) SetMaxTotalBufferSize(maxTotalBufferSize int) *EnableArgs + type ErrorReason int + const ErrorReasonAborted + const ErrorReasonAccessDenied + const ErrorReasonAddressUnreachable + const ErrorReasonConnectionAborted + const ErrorReasonConnectionClosed + const ErrorReasonConnectionFailed + const ErrorReasonConnectionRefused + const ErrorReasonConnectionReset + const ErrorReasonFailed + const ErrorReasonInternetDisconnected + const ErrorReasonNameNotResolved + const ErrorReasonNotSet + const ErrorReasonTimedOut + func (e *ErrorReason) UnmarshalJSON(data []byte) error + func (e ErrorReason) MarshalJSON() ([]byte, error) + func (e ErrorReason) String() string + func (e ErrorReason) Valid() bool + type EventSourceMessageReceivedClient interface + Recv func() (*EventSourceMessageReceivedReply, error) + type EventSourceMessageReceivedReply struct + Data string + EventID string + EventName string + RequestID RequestID + Timestamp MonotonicTime + type FrameID = internal.PageFrameID + type GetAllCookiesReply struct + Cookies []Cookie + type GetCertificateArgs struct + Origin string + func NewGetCertificateArgs(origin string) *GetCertificateArgs + type GetCertificateReply struct + TableNames []string + type GetCookiesArgs struct + URLs []string + func NewGetCookiesArgs() *GetCookiesArgs + func (a *GetCookiesArgs) SetURLs(urls []string) *GetCookiesArgs + type GetCookiesReply struct + Cookies []Cookie + type GetResponseBodyArgs struct + RequestID RequestID + func NewGetResponseBodyArgs(requestID RequestID) *GetResponseBodyArgs + type GetResponseBodyReply struct + Base64Encoded bool + Body string + type Headers []byte + func (h *Headers) UnmarshalJSON(data []byte) error + func (h Headers) MarshalJSON() ([]byte, error) + func (n Headers) Map() (map[string]string, error) + type Initiator struct + LineNumber *float64 + Stack *runtime.StackTrace + Type string + URL *string + type InterceptionID string + type LoaderID string + type LoadingFailedClient interface + Recv func() (*LoadingFailedReply, error) + type LoadingFailedReply struct + BlockedReason BlockedReason + Canceled *bool + ErrorText string + RequestID RequestID + Timestamp MonotonicTime + Type ResourceType + type LoadingFinishedClient interface + Recv func() (*LoadingFinishedReply, error) + type LoadingFinishedReply struct + EncodedDataLength float64 + RequestID RequestID + Timestamp MonotonicTime + type MonotonicTime float64 + func (t *MonotonicTime) UnmarshalJSON(data []byte) error + func (t MonotonicTime) MarshalJSON() ([]byte, error) + func (t MonotonicTime) String() string + func (t MonotonicTime) Time() time.Time + type ReplayXHRArgs struct + RequestID RequestID + func NewReplayXHRArgs(requestID RequestID) *ReplayXHRArgs + type Request struct + Headers Headers + InitialPriority ResourcePriority + IsLinkPreload *bool + Method string + MixedContentType *security.MixedContentType + PostData *string + ReferrerPolicy string + URL string + type RequestID string + type RequestInterceptedClient interface + Recv func() (*RequestInterceptedReply, error) + type RequestInterceptedReply struct + AuthChallenge *AuthChallenge + InterceptionID InterceptionID + RedirectHeaders Headers + RedirectStatusCode *int + RedirectURL *string + Request Request + ResourceType ResourceType + type RequestServedFromCacheClient interface + Recv func() (*RequestServedFromCacheReply, error) + type RequestServedFromCacheReply struct + RequestID RequestID + type RequestWillBeSentClient interface + Recv func() (*RequestWillBeSentReply, error) + type RequestWillBeSentReply struct + DocumentURL string + FrameID *FrameID + Initiator Initiator + LoaderID LoaderID + RedirectResponse *Response + Request Request + RequestID RequestID + Timestamp MonotonicTime + Type *ResourceType + WallTime TimeSinceEpoch + type ResourceChangedPriorityClient interface + Recv func() (*ResourceChangedPriorityReply, error) + type ResourceChangedPriorityReply struct + NewPriority ResourcePriority + RequestID RequestID + Timestamp MonotonicTime + type ResourcePriority int + const ResourcePriorityHigh + const ResourcePriorityLow + const ResourcePriorityMedium + const ResourcePriorityNotSet + const ResourcePriorityVeryHigh + const ResourcePriorityVeryLow + func (e *ResourcePriority) UnmarshalJSON(data []byte) error + func (e ResourcePriority) MarshalJSON() ([]byte, error) + func (e ResourcePriority) String() string + func (e ResourcePriority) Valid() bool + type ResourceTiming struct + ConnectEnd float64 + ConnectStart float64 + DNSEnd float64 + DNSStart float64 + ProxyEnd float64 + ProxyStart float64 + PushEnd float64 + PushStart float64 + ReceiveHeadersEnd float64 + RequestTime float64 + SendEnd float64 + SendStart float64 + SslEnd float64 + SslStart float64 + WorkerReady float64 + WorkerStart float64 + type ResourceType = internal.PageResourceType + type Response struct + ConnectionID float64 + ConnectionReused bool + EncodedDataLength float64 + FromDiskCache *bool + FromServiceWorker *bool + Headers Headers + HeadersText *string + MimeType string + Protocol *string + RemoteIPAddress *string + RemotePort *int + RequestHeaders Headers + RequestHeadersText *string + SecurityDetails *SecurityDetails + SecurityState security.State + Status float64 + StatusText string + Timing *ResourceTiming + URL string + type ResponseReceivedClient interface + Recv func() (*ResponseReceivedReply, error) + type ResponseReceivedReply struct + FrameID *FrameID + LoaderID LoaderID + RequestID RequestID + Response Response + Timestamp MonotonicTime + Type ResourceType + type SecurityDetails struct + CertificateID security.CertificateID + Cipher string + Issuer string + KeyExchange string + KeyExchangeGroup *string + Mac *string + Protocol string + SanList []string + SignedCertificateTimestampList []SignedCertificateTimestamp + SubjectName string + ValidFrom TimeSinceEpoch + ValidTo TimeSinceEpoch + type SetBlockedURLsArgs struct + URLs []string + func NewSetBlockedURLsArgs(urls []string) *SetBlockedURLsArgs + type SetBypassServiceWorkerArgs struct + Bypass bool + func NewSetBypassServiceWorkerArgs(bypass bool) *SetBypassServiceWorkerArgs + type SetCacheDisabledArgs struct + CacheDisabled bool + func NewSetCacheDisabledArgs(cacheDisabled bool) *SetCacheDisabledArgs + type SetCookieArgs struct + Domain *string + ExpirationDate TimeSinceEpoch + HTTPOnly *bool + Name string + Path *string + SameSite CookieSameSite + Secure *bool + URL string + Value string + func NewSetCookieArgs(url string, name string, value string) *SetCookieArgs + func (a *SetCookieArgs) SetDomain(domain string) *SetCookieArgs + func (a *SetCookieArgs) SetExpirationDate(expirationDate TimeSinceEpoch) *SetCookieArgs + func (a *SetCookieArgs) SetHTTPOnly(httpOnly bool) *SetCookieArgs + func (a *SetCookieArgs) SetPath(path string) *SetCookieArgs + func (a *SetCookieArgs) SetSameSite(sameSite CookieSameSite) *SetCookieArgs + func (a *SetCookieArgs) SetSecure(secure bool) *SetCookieArgs + type SetCookieReply struct + Success bool + type SetDataSizeLimitsForTestArgs struct + MaxResourceSize int + MaxTotalSize int + func NewSetDataSizeLimitsForTestArgs(maxTotalSize int, maxResourceSize int) *SetDataSizeLimitsForTestArgs + type SetExtraHTTPHeadersArgs struct + Headers Headers + func NewSetExtraHTTPHeadersArgs(headers Headers) *SetExtraHTTPHeadersArgs + type SetRequestInterceptionEnabledArgs struct + Enabled bool + func NewSetRequestInterceptionEnabledArgs(enabled bool) *SetRequestInterceptionEnabledArgs + type SetUserAgentOverrideArgs struct + UserAgent string + func NewSetUserAgentOverrideArgs(userAgent string) *SetUserAgentOverrideArgs + type SignedCertificateTimestamp struct + HashAlgorithm string + LogDescription string + LogID string + Origin string + SignatureAlgorithm string + SignatureData string + Status string + Timestamp TimeSinceEpoch + type TimeSinceEpoch float64 + func (t *TimeSinceEpoch) UnmarshalJSON(data []byte) error + func (t TimeSinceEpoch) MarshalJSON() ([]byte, error) + func (t TimeSinceEpoch) String() string + func (t TimeSinceEpoch) Time() time.Time + type WebSocketClosedClient interface + Recv func() (*WebSocketClosedReply, error) + type WebSocketClosedReply struct + RequestID RequestID + Timestamp MonotonicTime + type WebSocketCreatedClient interface + Recv func() (*WebSocketCreatedReply, error) + type WebSocketCreatedReply struct + Initiator *Initiator + RequestID RequestID + URL string + type WebSocketFrame struct + Mask bool + Opcode float64 + PayloadData string + type WebSocketFrameErrorClient interface + Recv func() (*WebSocketFrameErrorReply, error) + type WebSocketFrameErrorReply struct + ErrorMessage string + RequestID RequestID + Timestamp MonotonicTime + type WebSocketFrameReceivedClient interface + Recv func() (*WebSocketFrameReceivedReply, error) + type WebSocketFrameReceivedReply struct + RequestID RequestID + Response WebSocketFrame + Timestamp MonotonicTime + type WebSocketFrameSentClient interface + Recv func() (*WebSocketFrameSentReply, error) + type WebSocketFrameSentReply struct + RequestID RequestID + Response WebSocketFrame + Timestamp MonotonicTime + type WebSocketHandshakeResponseReceivedClient interface + Recv func() (*WebSocketHandshakeResponseReceivedReply, error) + type WebSocketHandshakeResponseReceivedReply struct + RequestID RequestID + Response WebSocketResponse + Timestamp MonotonicTime + type WebSocketRequest struct + Headers Headers + type WebSocketResponse struct + Headers Headers + HeadersText *string + RequestHeaders Headers + RequestHeadersText *string + Status float64 + StatusText string + type WebSocketWillSendHandshakeRequestClient interface + Recv func() (*WebSocketWillSendHandshakeRequestReply, error) + type WebSocketWillSendHandshakeRequestReply struct + Request WebSocketRequest + RequestID RequestID + Timestamp MonotonicTime + WallTime TimeSinceEpoch