network

package
v0.0.0-...-fc11c2f Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2017 License: MIT Imports: 3 Imported by: 0

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 LoaderID

type LoaderID string

LoaderID Unique loader identifier.

type MethodDisable

type MethodDisable struct {
	// contains filtered or unexported fields
}

func (MethodDisable) Domain

func (d MethodDisable) Domain() string

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

type MethodEnable

type MethodEnable struct {
	MaxTotalBufferSize    int `json:"maxTotalBufferSize,omitempty"`
	MaxResourceBufferSize int `json:"maxResourceBufferSize,omitempty"`
	// contains filtered or unexported fields
}

func (MethodEnable) Domain

func (d MethodEnable) Domain() string

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

Jump to

Keyboard shortcuts

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