webapi: github.com/gowebapi/webapi/communication/netinfo Index | Files

package netinfo

import "github.com/gowebapi/webapi/communication/netinfo"

Package netinfo is network information

Index

Package Files

doc.go netinfo.go

type ConnectionType Uses

type ConnectionType int

enum: ConnectionType

const (
    BluetoothConnectionType ConnectionType = iota
    CellularConnectionType
    EthernetConnectionType
    MixedConnectionType
    NoneConnectionType
    OtherConnectionType
    UnknownConnectionType
    WifiConnectionType
    WimaxConnectionType
)

func ConnectionTypeFromJS Uses

func ConnectionTypeFromJS(value js.Value) ConnectionType

ConnectionTypeFromJS is converting a javascript value into a ConnectionType enum value.

func (*ConnectionType) JSValue Uses

func (this *ConnectionType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ConnectionType) Value Uses

func (this ConnectionType) Value() string

Value is converting this into javascript defined string value

type EffectiveConnectionType Uses

type EffectiveConnectionType int

enum: EffectiveConnectionType

const (
    Slow2gEffectiveConnectionType EffectiveConnectionType
)

func EffectiveConnectionTypeFromJS Uses

func EffectiveConnectionTypeFromJS(value js.Value) EffectiveConnectionType

EffectiveConnectionTypeFromJS is converting a javascript value into a EffectiveConnectionType enum value.

func (*EffectiveConnectionType) JSValue Uses

func (this *EffectiveConnectionType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (EffectiveConnectionType) Value Uses

func (this EffectiveConnectionType) Value() string

Value is converting this into javascript defined string value

type NetworkInformation Uses

type NetworkInformation struct {
    domcore.EventTarget
}

class: NetworkInformation

func NetworkInformationFromJS Uses

func NetworkInformationFromJS(value js.Wrapper) *NetworkInformation

NetworkInformationFromJS is casting a js.Wrapper into NetworkInformation.

func (*NetworkInformation) AddEventChange Uses

func (_this *NetworkInformation) AddEventChange(listener func(event *domcore.Event, currentTarget *NetworkInformation)) js.Func

AddChange is adding doing AddEventListener for 'Change' on target. This method is returning allocated javascript function that need to be released.

func (_this *NetworkInformation) Downlink() float64

Downlink returning attribute 'downlink' with type float64 (idl: unrestricted double).

func (*NetworkInformation) DownlinkMax Uses

func (_this *NetworkInformation) DownlinkMax() float64

DownlinkMax returning attribute 'downlinkMax' with type float64 (idl: unrestricted double).

func (*NetworkInformation) EffectiveType Uses

func (_this *NetworkInformation) EffectiveType() EffectiveConnectionType

EffectiveType returning attribute 'effectiveType' with type EffectiveConnectionType (idl: EffectiveConnectionType).

func (*NetworkInformation) OnChange Uses

func (_this *NetworkInformation) OnChange() domcore.EventHandlerFunc

OnChange returning attribute 'onchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*NetworkInformation) Rtt Uses

func (_this *NetworkInformation) Rtt() int

Rtt returning attribute 'rtt' with type int (idl: unsigned long long).

func (*NetworkInformation) SaveData Uses

func (_this *NetworkInformation) SaveData() bool

SaveData returning attribute 'saveData' with type bool (idl: boolean).

func (*NetworkInformation) SetOnChange Uses

func (_this *NetworkInformation) SetOnChange(listener func(event *domcore.Event, currentTarget *NetworkInformation)) js.Func

SetOnChange is assigning a function to 'onchange'. This This method is returning allocated javascript function that need to be released.

func (*NetworkInformation) Type Uses

func (_this *NetworkInformation) Type() ConnectionType

Type returning attribute 'type' with type ConnectionType (idl: ConnectionType).

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package netinfo imports 2 packages (graph) and is imported by 2 packages. Updated 2019-09-18. Refresh now. Tools for package owners.