Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Enable network tracking, network events will now be delivered to the client Enable = "Network.enable" // Enables . // Disable network tracking, prevents network events from being sent to the client Disable = "Network.disable" // EmulateNetworkConditions Activates emulation of network conditions. EmulateNetworkConditions = "Nework.emulateNetworkConditions" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionType ¶
type ConnectionType string
ConnectionType The underlying connection technology that the browser is supposedly using. Allowed: none, cellular2g, cellular3g, cellular4g, bluetooth, ethernet, wifi, wimax, other.
type DisableReturns ¶
type DisableReturns struct{}
type EmulateNetworkConditionsReturns ¶
type EmulateNetworkConditionsReturns struct{}
type EnableReturns ¶
type EnableReturns struct{}
type MethodDisable ¶
type MethodDisable struct {
// contains filtered or unexported fields
}
func (*MethodDisable) Dump ¶
func (db *MethodDisable) Dump() ([]byte, error)
func (*MethodDisable) Load ¶
func (db *MethodDisable) Load(d []byte) (interface{}, error)
func (*MethodDisable) Name ¶
func (db *MethodDisable) Name() string
type MethodEmulateNetworkConditions ¶
type MethodEmulateNetworkConditions struct { Offline bool `json:"offline"` Latency int `json:"latency"` // ms DownloadThroughput int `json:"downloadThroughput"` // Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. UploadThroughput int `json:"uploadThroughput"` // Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling ConnectionType ConnectionType `json:"connectionType,omitempty"` // contains filtered or unexported fields }
func (MethodEmulateNetworkConditions) Domain ¶
func (d MethodEmulateNetworkConditions) Domain() string
func (*MethodEmulateNetworkConditions) Dump ¶
func (enc *MethodEmulateNetworkConditions) Dump() ([]byte, error)
func (*MethodEmulateNetworkConditions) Load ¶
func (enc *MethodEmulateNetworkConditions) Load(d []byte) (interface{}, error)
func (*MethodEmulateNetworkConditions) Name ¶
func (enc *MethodEmulateNetworkConditions) Name() string
type MethodEnable ¶
type MethodEnable struct { MaxTotalBufferSize int `json:"maxTotalBufferSize,omitempty"` MaxResourceBufferSize int `json:"maxResourceBufferSize,omitempty"` // contains filtered or unexported fields }
func (*MethodEnable) Dump ¶
func (e *MethodEnable) Dump() ([]byte, error)
func (*MethodEnable) Load ¶
func (e *MethodEnable) Load(d []byte) (interface{}, error)
func (*MethodEnable) Name ¶
func (e *MethodEnable) Name() string
Click to show internal directories.
Click to hide internal directories.