performance

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Overview

Package performance measurement ability with sub-millisecond resolution.

This includes:

* An insights into the latency of certain events triggered by user interactions.

* Detect presence of "long tasks" that monopolize the UI thread for extended periods of time and block other critical tasks from being executed - e.g. reacting to user input.

* Complete timing information on navigation of a document.

* Capture a series of key moments (First Paint, First Contentful Paint) during pageload which developers care about.

* Let a server to communicate performance metrics about the request-response cycle to the user agent. It also standardizes a JavaScript interface to enable applications to collect, process, and act on these metrics to optimize application delivery.

Index

Constants

View Source
const (
	TYPENAVIGATE_PerformanceNavigation    int = 0
	TYPERELOAD_PerformanceNavigation      int = 1
	TYPEBACKFORWARD_PerformanceNavigation int = 2
	TYPERESERVED_PerformanceNavigation    int = 255
)

Variables

This section is empty.

Functions

func SupportedEntryTypes

func SupportedEntryTypes() *javascript.FrozenArray

SupportedEntryTypes returning attribute 'supportedEntryTypes' with type javascript.FrozenArray (idl: FrozenArray).

Types

type Entry

type Entry struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: PerformanceEntry

func EntryFromJS

func EntryFromJS(value js.Value) *Entry

EntryFromJS is casting a js.Value into Entry.

func EntryFromWrapper

func EntryFromWrapper(input core.Wrapper) *Entry

EntryFromJS is casting from something that holds a js.Value into Entry.

func (*Entry) Duration

func (_this *Entry) Duration() float64

Duration returning attribute 'duration' with type float64 (idl: double).

func (*Entry) EntryType

func (_this *Entry) EntryType() string

EntryType returning attribute 'entryType' with type string (idl: DOMString).

func (*Entry) JSValue

func (_this *Entry) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*Entry) Name

func (_this *Entry) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*Entry) StartTime

func (_this *Entry) StartTime() float64

StartTime returning attribute 'startTime' with type float64 (idl: double).

func (*Entry) ToJSON

func (_this *Entry) ToJSON() (_result *javascript.Object)

type EventCounts

type EventCounts struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: EventCounts

func EventCountsFromJS

func EventCountsFromJS(value js.Value) *EventCounts

EventCountsFromJS is casting a js.Value into EventCounts.

func EventCountsFromWrapper

func EventCountsFromWrapper(input core.Wrapper) *EventCounts

EventCountsFromJS is casting from something that holds a js.Value into EventCounts.

func (*EventCounts) Entries

func (_this *EventCounts) Entries() (_result *EventCountsEntryIterator)

func (*EventCounts) ForEach

func (_this *EventCounts) ForEach(callback *EventCountsForEach, optionalThisForCallbackArgument interface{})

func (*EventCounts) Get

func (_this *EventCounts) Get(key string) (_result *uint)

func (*EventCounts) Has

func (_this *EventCounts) Has(key string) (_result bool)

func (*EventCounts) JSValue

func (_this *EventCounts) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*EventCounts) Keys

func (_this *EventCounts) Keys() (_result *EventCountsKeyIterator)

func (*EventCounts) Size

func (_this *EventCounts) Size() int

Size returning attribute 'size' with type int (idl: long).

func (*EventCounts) Values

func (_this *EventCounts) Values() (_result *EventCountsValueIterator)

type EventCountsEntryIterator

type EventCountsEntryIterator struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: EventCountsEntryIterator

func EventCountsEntryIteratorFromJS

func EventCountsEntryIteratorFromJS(value js.Value) *EventCountsEntryIterator

EventCountsEntryIteratorFromJS is casting a js.Value into EventCountsEntryIterator.

func EventCountsEntryIteratorFromWrapper

func EventCountsEntryIteratorFromWrapper(input core.Wrapper) *EventCountsEntryIterator

EventCountsEntryIteratorFromJS is casting from something that holds a js.Value into EventCountsEntryIterator.

func (*EventCountsEntryIterator) JSValue

func (_this *EventCountsEntryIterator) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*EventCountsEntryIterator) Next

type EventCountsEntryIteratorValue

type EventCountsEntryIteratorValue struct {
	Value []js.Value
	Done  bool
}

dictionary: EventCountsEntryIteratorValue

func EventCountsEntryIteratorValueFromJS

func EventCountsEntryIteratorValueFromJS(value js.Value) *EventCountsEntryIteratorValue

EventCountsEntryIteratorValueFromJS is allocating a new EventCountsEntryIteratorValue object and copy all values in the value javascript object.

func (*EventCountsEntryIteratorValue) JSValue

func (_this *EventCountsEntryIteratorValue) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type EventCountsForEach

type EventCountsForEach js.Func

EventCountsForEach is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func EventCountsForEachToJS

func EventCountsForEachToJS(callback EventCountsForEachFunc) *EventCountsForEach

type EventCountsForEachFunc

type EventCountsForEachFunc func(currentValue uint, currentKey string, listObj *EventCounts)

callback: EventCountsForEach

func EventCountsForEachFromJS

func EventCountsForEachFromJS(_value js.Value) EventCountsForEachFunc

type EventCountsKeyIterator

type EventCountsKeyIterator struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: EventCountsKeyIterator

func EventCountsKeyIteratorFromJS

func EventCountsKeyIteratorFromJS(value js.Value) *EventCountsKeyIterator

EventCountsKeyIteratorFromJS is casting a js.Value into EventCountsKeyIterator.

func EventCountsKeyIteratorFromWrapper

func EventCountsKeyIteratorFromWrapper(input core.Wrapper) *EventCountsKeyIterator

EventCountsKeyIteratorFromJS is casting from something that holds a js.Value into EventCountsKeyIterator.

func (*EventCountsKeyIterator) JSValue

func (_this *EventCountsKeyIterator) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*EventCountsKeyIterator) Next

func (_this *EventCountsKeyIterator) Next() (_result *EventCountsKeyIteratorValue)

type EventCountsKeyIteratorValue

type EventCountsKeyIteratorValue struct {
	Value string
	Done  bool
}

dictionary: EventCountsKeyIteratorValue

func EventCountsKeyIteratorValueFromJS

func EventCountsKeyIteratorValueFromJS(value js.Value) *EventCountsKeyIteratorValue

EventCountsKeyIteratorValueFromJS is allocating a new EventCountsKeyIteratorValue object and copy all values in the value javascript object.

func (*EventCountsKeyIteratorValue) JSValue

func (_this *EventCountsKeyIteratorValue) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type EventCountsValueIterator

type EventCountsValueIterator struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: EventCountsValueIterator

func EventCountsValueIteratorFromJS

func EventCountsValueIteratorFromJS(value js.Value) *EventCountsValueIterator

EventCountsValueIteratorFromJS is casting a js.Value into EventCountsValueIterator.

func EventCountsValueIteratorFromWrapper

func EventCountsValueIteratorFromWrapper(input core.Wrapper) *EventCountsValueIterator

EventCountsValueIteratorFromJS is casting from something that holds a js.Value into EventCountsValueIterator.

func (*EventCountsValueIterator) JSValue

func (_this *EventCountsValueIterator) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*EventCountsValueIterator) Next

type EventCountsValueIteratorValue

type EventCountsValueIteratorValue struct {
	Value uint
	Done  bool
}

dictionary: EventCountsValueIteratorValue

func EventCountsValueIteratorValueFromJS

func EventCountsValueIteratorValueFromJS(value js.Value) *EventCountsValueIteratorValue

EventCountsValueIteratorValueFromJS is allocating a new EventCountsValueIteratorValue object and copy all values in the value javascript object.

func (*EventCountsValueIteratorValue) JSValue

func (_this *EventCountsValueIteratorValue) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type EventTiming

type EventTiming struct {
	Entry
}

class: PerformanceEventTiming

func EventTimingFromJS

func EventTimingFromJS(value js.Value) *EventTiming

EventTimingFromJS is casting a js.Value into EventTiming.

func EventTimingFromWrapper

func EventTimingFromWrapper(input core.Wrapper) *EventTiming

EventTimingFromJS is casting from something that holds a js.Value into EventTiming.

func (*EventTiming) Cancelable

func (_this *EventTiming) Cancelable() bool

Cancelable returning attribute 'cancelable' with type bool (idl: boolean).

func (*EventTiming) ProcessingEnd

func (_this *EventTiming) ProcessingEnd() float64

ProcessingEnd returning attribute 'processingEnd' with type float64 (idl: double).

func (*EventTiming) ProcessingStart

func (_this *EventTiming) ProcessingStart() float64

ProcessingStart returning attribute 'processingStart' with type float64 (idl: double).

type LongTaskTiming

type LongTaskTiming struct {
	Entry
}

class: PerformanceLongTaskTiming

func LongTaskTimingFromJS

func LongTaskTimingFromJS(value js.Value) *LongTaskTiming

LongTaskTimingFromJS is casting a js.Value into LongTaskTiming.

func LongTaskTimingFromWrapper

func LongTaskTimingFromWrapper(input core.Wrapper) *LongTaskTiming

LongTaskTimingFromJS is casting from something that holds a js.Value into LongTaskTiming.

func (*LongTaskTiming) Attribution

func (_this *LongTaskTiming) Attribution() *javascript.FrozenArray

Attribution returning attribute 'attribution' with type javascript.FrozenArray (idl: FrozenArray).

type Mark

type Mark struct {
	Entry
}

class: PerformanceMark

func MarkFromJS

func MarkFromJS(value js.Value) *Mark

MarkFromJS is casting a js.Value into Mark.

func MarkFromWrapper

func MarkFromWrapper(input core.Wrapper) *Mark

MarkFromJS is casting from something that holds a js.Value into Mark.

func NewPerformanceMark

func NewPerformanceMark(markName string, markOptions *MarkOptions) (_result *Mark)

func (*Mark) Detail

func (_this *Mark) Detail() js.Value

Detail returning attribute 'detail' with type Any (idl: any).

type MarkOptions

type MarkOptions struct {
	Detail    js.Value
	StartTime float64
}

dictionary: PerformanceMarkOptions

func MarkOptionsFromJS

func MarkOptionsFromJS(value js.Value) *MarkOptions

MarkOptionsFromJS is allocating a new MarkOptions object and copy all values in the value javascript object.

func (*MarkOptions) JSValue

func (_this *MarkOptions) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type Measure

type Measure struct {
	Entry
}

class: PerformanceMeasure

func MeasureFromJS

func MeasureFromJS(value js.Value) *Measure

MeasureFromJS is casting a js.Value into Measure.

func MeasureFromWrapper

func MeasureFromWrapper(input core.Wrapper) *Measure

MeasureFromJS is casting from something that holds a js.Value into Measure.

func (*Measure) Detail

func (_this *Measure) Detail() js.Value

Detail returning attribute 'detail' with type Any (idl: any).

type MeasureOptions

type MeasureOptions struct {
	Detail    js.Value
	StartTime *Union
	Duration  float64
	EndTime   *Union
}

dictionary: PerformanceMeasureOptions

func MeasureOptionsFromJS

func MeasureOptionsFromJS(value js.Value) *MeasureOptions

MeasureOptionsFromJS is allocating a new MeasureOptions object and copy all values in the value javascript object.

func (*MeasureOptions) JSValue

func (_this *MeasureOptions) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type Navigation struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: PerformanceNavigation

func NavigationFromJS(value js.Value) *Navigation

NavigationFromJS is casting a js.Value into Navigation.

func NavigationFromWrapper(input core.Wrapper) *Navigation

NavigationFromJS is casting from something that holds a js.Value into Navigation.

func (_this *Navigation) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (_this *Navigation) RedirectCount() int

RedirectCount returning attribute 'redirectCount' with type int (idl: unsigned short).

func (_this *Navigation) ToJSON() (_result *javascript.Object)
func (_this *Navigation) Type() int

Type returning attribute 'type' with type int (idl: unsigned short).

type NavigationTiming struct {
	ResourceTiming
}

class: PerformanceNavigationTiming

func NavigationTimingFromJS(value js.Value) *NavigationTiming

NavigationTimingFromJS is casting a js.Value into NavigationTiming.

func NavigationTimingFromWrapper(input core.Wrapper) *NavigationTiming

NavigationTimingFromJS is casting from something that holds a js.Value into NavigationTiming.

func (_this *NavigationTiming) DomComplete() float64

DomComplete returning attribute 'domComplete' with type float64 (idl: double).

func (_this *NavigationTiming) DomContentLoadedEventEnd() float64

DomContentLoadedEventEnd returning attribute 'domContentLoadedEventEnd' with type float64 (idl: double).

func (_this *NavigationTiming) DomContentLoadedEventStart() float64

DomContentLoadedEventStart returning attribute 'domContentLoadedEventStart' with type float64 (idl: double).

func (_this *NavigationTiming) DomInteractive() float64

DomInteractive returning attribute 'domInteractive' with type float64 (idl: double).

func (_this *NavigationTiming) LoadEventEnd() float64

LoadEventEnd returning attribute 'loadEventEnd' with type float64 (idl: double).

func (_this *NavigationTiming) LoadEventStart() float64

LoadEventStart returning attribute 'loadEventStart' with type float64 (idl: double).

func (_this *NavigationTiming) RedirectCount() int

RedirectCount returning attribute 'redirectCount' with type int (idl: unsigned short).

func (_this *NavigationTiming) ToJSON3() (_result *javascript.Object)
func (_this *NavigationTiming) Type() NavigationType

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

func (_this *NavigationTiming) UnloadEventEnd() float64

UnloadEventEnd returning attribute 'unloadEventEnd' with type float64 (idl: double).

func (_this *NavigationTiming) UnloadEventStart() float64

UnloadEventStart returning attribute 'unloadEventStart' with type float64 (idl: double).

type NavigationType int

enum: NavigationType

const (
	NavigateNavigationType NavigationType = iota
	ReloadNavigationType
	BackForwardNavigationType
	PrerenderNavigationType
)
func NavigationTypeFromJS(value js.Value) NavigationType

NavigationTypeFromJS is converting a javascript value into a NavigationType enum value.

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

JSValue is converting this enum into a javascript object

func (this NavigationType) Value() string

Value is converting this into javascript defined string value

type Observer

type Observer struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: PerformanceObserver

func NewPerformanceObserver

func NewPerformanceObserver(callback *ObserverCallback) (_result *Observer)

func ObserverFromJS

func ObserverFromJS(value js.Value) *Observer

ObserverFromJS is casting a js.Value into Observer.

func ObserverFromWrapper

func ObserverFromWrapper(input core.Wrapper) *Observer

ObserverFromJS is casting from something that holds a js.Value into Observer.

func (*Observer) Disconnect

func (_this *Observer) Disconnect()

func (*Observer) JSValue

func (_this *Observer) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*Observer) Observe

func (_this *Observer) Observe(options *ObserverInit)

func (*Observer) TakeRecords

func (_this *Observer) TakeRecords() (_result []*Entry)

type ObserverCallback

type ObserverCallback js.Func

ObserverCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func ObserverCallbackToJS

func ObserverCallbackToJS(callback ObserverCallbackFunc) *ObserverCallback

type ObserverCallbackFunc

type ObserverCallbackFunc func(entries *ObserverEntryList, observer *Observer)

callback: PerformanceObserverCallback

func ObserverCallbackFromJS

func ObserverCallbackFromJS(_value js.Value) ObserverCallbackFunc

type ObserverEntryList

type ObserverEntryList struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: PerformanceObserverEntryList

func ObserverEntryListFromJS

func ObserverEntryListFromJS(value js.Value) *ObserverEntryList

ObserverEntryListFromJS is casting a js.Value into ObserverEntryList.

func ObserverEntryListFromWrapper

func ObserverEntryListFromWrapper(input core.Wrapper) *ObserverEntryList

ObserverEntryListFromJS is casting from something that holds a js.Value into ObserverEntryList.

func (*ObserverEntryList) GetEntries

func (_this *ObserverEntryList) GetEntries() (_result []*Entry)

func (*ObserverEntryList) GetEntriesByName

func (_this *ObserverEntryList) GetEntriesByName(name string, _type *string) (_result []*Entry)

func (*ObserverEntryList) GetEntriesByType

func (_this *ObserverEntryList) GetEntriesByType(_type string) (_result []*Entry)

func (*ObserverEntryList) JSValue

func (_this *ObserverEntryList) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type ObserverInit

type ObserverInit struct {
	EntryTypes []string
	Type       string
	Buffered   bool
}

dictionary: PerformanceObserverInit

func ObserverInitFromJS

func ObserverInitFromJS(value js.Value) *ObserverInit

ObserverInitFromJS is allocating a new ObserverInit object and copy all values in the value javascript object.

func (*ObserverInit) JSValue

func (_this *ObserverInit) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type Performance

type Performance struct {
	domcore.EventTarget
}

class: Performance

func PerformanceFromJS

func PerformanceFromJS(value js.Value) *Performance

PerformanceFromJS is casting a js.Value into Performance.

func PerformanceFromWrapper

func PerformanceFromWrapper(input core.Wrapper) *Performance

PerformanceFromJS is casting from something that holds a js.Value into Performance.

func (*Performance) AddEventResourceTimingBufferFull

func (_this *Performance) AddEventResourceTimingBufferFull(listener func(event *domcore.Event, currentTarget *Performance)) js.Func

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

func (*Performance) ClearMarks

func (_this *Performance) ClearMarks(markName *string)

func (*Performance) ClearMeasures

func (_this *Performance) ClearMeasures(measureName *string)

func (*Performance) ClearResourceTimings

func (_this *Performance) ClearResourceTimings()

func (*Performance) EventCounts

func (_this *Performance) EventCounts() *EventCounts

EventCounts returning attribute 'eventCounts' with type EventCounts (idl: EventCounts).

func (*Performance) GetEntries

func (_this *Performance) GetEntries() (_result []*Entry)

func (*Performance) GetEntriesByName

func (_this *Performance) GetEntriesByName(name string, _type *string) (_result []*Entry)

func (*Performance) GetEntriesByType

func (_this *Performance) GetEntriesByType(_type string) (_result []*Entry)

func (*Performance) Mark

func (_this *Performance) Mark(markName string, markOptions *MarkOptions) (_result *Mark)

func (*Performance) Measure

func (_this *Performance) Measure(measureName string, startOrMeasureOptions *Union, endMark *string) (_result *Measure)

func (*Performance) Navigation

func (_this *Performance) Navigation() *Navigation

Navigation returning attribute 'navigation' with type Navigation (idl: PerformanceNavigation).

func (*Performance) Now

func (_this *Performance) Now() (_result float64)

func (*Performance) OnResourceTimingBufferFull

func (_this *Performance) OnResourceTimingBufferFull() domcore.EventHandlerFunc

OnResourceTimingBufferFull returning attribute 'onresourcetimingbufferfull' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*Performance) SetOnResourceTimingBufferFull

func (_this *Performance) SetOnResourceTimingBufferFull(listener func(event *domcore.Event, currentTarget *Performance)) js.Func

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

func (*Performance) SetResourceTimingBufferSize

func (_this *Performance) SetResourceTimingBufferSize(maxSize uint)

func (*Performance) TimeOrigin

func (_this *Performance) TimeOrigin() float64

TimeOrigin returning attribute 'timeOrigin' with type float64 (idl: double).

func (*Performance) Timing

func (_this *Performance) Timing() *Timing

Timing returning attribute 'timing' with type Timing (idl: PerformanceTiming).

func (*Performance) ToJSON

func (_this *Performance) ToJSON() (_result *javascript.Object)

type PerformancePaintTiming

type PerformancePaintTiming struct {
	Entry
}

class: PerformancePaintTiming

func PerformancePaintTimingFromJS

func PerformancePaintTimingFromJS(value js.Value) *PerformancePaintTiming

PerformancePaintTimingFromJS is casting a js.Value into PerformancePaintTiming.

func PerformancePaintTimingFromWrapper

func PerformancePaintTimingFromWrapper(input core.Wrapper) *PerformancePaintTiming

PerformancePaintTimingFromJS is casting from something that holds a js.Value into PerformancePaintTiming.

type ResourceTiming

type ResourceTiming struct {
	Entry
}

class: PerformanceResourceTiming

func ResourceTimingFromJS

func ResourceTimingFromJS(value js.Value) *ResourceTiming

ResourceTimingFromJS is casting a js.Value into ResourceTiming.

func ResourceTimingFromWrapper

func ResourceTimingFromWrapper(input core.Wrapper) *ResourceTiming

ResourceTimingFromJS is casting from something that holds a js.Value into ResourceTiming.

func (*ResourceTiming) ConnectEnd

func (_this *ResourceTiming) ConnectEnd() float64

ConnectEnd returning attribute 'connectEnd' with type float64 (idl: double).

func (*ResourceTiming) ConnectStart

func (_this *ResourceTiming) ConnectStart() float64

ConnectStart returning attribute 'connectStart' with type float64 (idl: double).

func (*ResourceTiming) DecodedBodySize

func (_this *ResourceTiming) DecodedBodySize() int

DecodedBodySize returning attribute 'decodedBodySize' with type int (idl: unsigned long long).

func (*ResourceTiming) DomainLookupEnd

func (_this *ResourceTiming) DomainLookupEnd() float64

DomainLookupEnd returning attribute 'domainLookupEnd' with type float64 (idl: double).

func (*ResourceTiming) DomainLookupStart

func (_this *ResourceTiming) DomainLookupStart() float64

DomainLookupStart returning attribute 'domainLookupStart' with type float64 (idl: double).

func (*ResourceTiming) EncodedBodySize

func (_this *ResourceTiming) EncodedBodySize() int

EncodedBodySize returning attribute 'encodedBodySize' with type int (idl: unsigned long long).

func (*ResourceTiming) FetchStart

func (_this *ResourceTiming) FetchStart() float64

FetchStart returning attribute 'fetchStart' with type float64 (idl: double).

func (*ResourceTiming) InitiatorType

func (_this *ResourceTiming) InitiatorType() string

InitiatorType returning attribute 'initiatorType' with type string (idl: DOMString).

func (*ResourceTiming) NextHopProtocol

func (_this *ResourceTiming) NextHopProtocol() string

NextHopProtocol returning attribute 'nextHopProtocol' with type string (idl: DOMString).

func (*ResourceTiming) RedirectEnd

func (_this *ResourceTiming) RedirectEnd() float64

RedirectEnd returning attribute 'redirectEnd' with type float64 (idl: double).

func (*ResourceTiming) RedirectStart

func (_this *ResourceTiming) RedirectStart() float64

RedirectStart returning attribute 'redirectStart' with type float64 (idl: double).

func (*ResourceTiming) RequestStart

func (_this *ResourceTiming) RequestStart() float64

RequestStart returning attribute 'requestStart' with type float64 (idl: double).

func (*ResourceTiming) ResponseEnd

func (_this *ResourceTiming) ResponseEnd() float64

ResponseEnd returning attribute 'responseEnd' with type float64 (idl: double).

func (*ResourceTiming) ResponseStart

func (_this *ResourceTiming) ResponseStart() float64

ResponseStart returning attribute 'responseStart' with type float64 (idl: double).

func (*ResourceTiming) SecureConnectionStart

func (_this *ResourceTiming) SecureConnectionStart() float64

SecureConnectionStart returning attribute 'secureConnectionStart' with type float64 (idl: double).

func (*ResourceTiming) ServerTiming

func (_this *ResourceTiming) ServerTiming() *javascript.FrozenArray

ServerTiming returning attribute 'serverTiming' with type javascript.FrozenArray (idl: FrozenArray).

func (*ResourceTiming) ToJSON2

func (_this *ResourceTiming) ToJSON2() (_result *javascript.Object)

func (*ResourceTiming) TransferSize

func (_this *ResourceTiming) TransferSize() int

TransferSize returning attribute 'transferSize' with type int (idl: unsigned long long).

func (*ResourceTiming) WorkerStart

func (_this *ResourceTiming) WorkerStart() float64

WorkerStart returning attribute 'workerStart' with type float64 (idl: double).

type ServerTiming

type ServerTiming struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: PerformanceServerTiming

func ServerTimingFromJS

func ServerTimingFromJS(value js.Value) *ServerTiming

ServerTimingFromJS is casting a js.Value into ServerTiming.

func ServerTimingFromWrapper

func ServerTimingFromWrapper(input core.Wrapper) *ServerTiming

ServerTimingFromJS is casting from something that holds a js.Value into ServerTiming.

func (*ServerTiming) Description

func (_this *ServerTiming) Description() string

Description returning attribute 'description' with type string (idl: DOMString).

func (*ServerTiming) Duration

func (_this *ServerTiming) Duration() float64

Duration returning attribute 'duration' with type float64 (idl: double).

func (*ServerTiming) JSValue

func (_this *ServerTiming) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*ServerTiming) Name

func (_this *ServerTiming) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*ServerTiming) ToJSON

func (_this *ServerTiming) ToJSON() (_result *javascript.Object)

type TaskAttributionTiming

type TaskAttributionTiming struct {
	Entry
}

class: TaskAttributionTiming

func TaskAttributionTimingFromJS

func TaskAttributionTimingFromJS(value js.Value) *TaskAttributionTiming

TaskAttributionTimingFromJS is casting a js.Value into TaskAttributionTiming.

func TaskAttributionTimingFromWrapper

func TaskAttributionTimingFromWrapper(input core.Wrapper) *TaskAttributionTiming

TaskAttributionTimingFromJS is casting from something that holds a js.Value into TaskAttributionTiming.

func (*TaskAttributionTiming) ContainerId

func (_this *TaskAttributionTiming) ContainerId() string

ContainerId returning attribute 'containerId' with type string (idl: DOMString).

func (*TaskAttributionTiming) ContainerName

func (_this *TaskAttributionTiming) ContainerName() string

ContainerName returning attribute 'containerName' with type string (idl: DOMString).

func (*TaskAttributionTiming) ContainerSrc

func (_this *TaskAttributionTiming) ContainerSrc() string

ContainerSrc returning attribute 'containerSrc' with type string (idl: DOMString).

func (*TaskAttributionTiming) ContainerType

func (_this *TaskAttributionTiming) ContainerType() string

ContainerType returning attribute 'containerType' with type string (idl: DOMString).

type Timing

type Timing struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: PerformanceTiming

func TimingFromJS

func TimingFromJS(value js.Value) *Timing

TimingFromJS is casting a js.Value into Timing.

func TimingFromWrapper

func TimingFromWrapper(input core.Wrapper) *Timing

TimingFromJS is casting from something that holds a js.Value into Timing.

func (*Timing) ConnectEnd

func (_this *Timing) ConnectEnd() int

ConnectEnd returning attribute 'connectEnd' with type int (idl: unsigned long long).

func (*Timing) ConnectStart

func (_this *Timing) ConnectStart() int

ConnectStart returning attribute 'connectStart' with type int (idl: unsigned long long).

func (*Timing) DomComplete

func (_this *Timing) DomComplete() int

DomComplete returning attribute 'domComplete' with type int (idl: unsigned long long).

func (*Timing) DomContentLoadedEventEnd

func (_this *Timing) DomContentLoadedEventEnd() int

DomContentLoadedEventEnd returning attribute 'domContentLoadedEventEnd' with type int (idl: unsigned long long).

func (*Timing) DomContentLoadedEventStart

func (_this *Timing) DomContentLoadedEventStart() int

DomContentLoadedEventStart returning attribute 'domContentLoadedEventStart' with type int (idl: unsigned long long).

func (*Timing) DomInteractive

func (_this *Timing) DomInteractive() int

DomInteractive returning attribute 'domInteractive' with type int (idl: unsigned long long).

func (*Timing) DomLoading

func (_this *Timing) DomLoading() int

DomLoading returning attribute 'domLoading' with type int (idl: unsigned long long).

func (*Timing) DomainLookupEnd

func (_this *Timing) DomainLookupEnd() int

DomainLookupEnd returning attribute 'domainLookupEnd' with type int (idl: unsigned long long).

func (*Timing) DomainLookupStart

func (_this *Timing) DomainLookupStart() int

DomainLookupStart returning attribute 'domainLookupStart' with type int (idl: unsigned long long).

func (*Timing) FetchStart

func (_this *Timing) FetchStart() int

FetchStart returning attribute 'fetchStart' with type int (idl: unsigned long long).

func (*Timing) JSValue

func (_this *Timing) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*Timing) LoadEventEnd

func (_this *Timing) LoadEventEnd() int

LoadEventEnd returning attribute 'loadEventEnd' with type int (idl: unsigned long long).

func (*Timing) LoadEventStart

func (_this *Timing) LoadEventStart() int

LoadEventStart returning attribute 'loadEventStart' with type int (idl: unsigned long long).

func (*Timing) NavigationStart

func (_this *Timing) NavigationStart() int

NavigationStart returning attribute 'navigationStart' with type int (idl: unsigned long long).

func (*Timing) RedirectEnd

func (_this *Timing) RedirectEnd() int

RedirectEnd returning attribute 'redirectEnd' with type int (idl: unsigned long long).

func (*Timing) RedirectStart

func (_this *Timing) RedirectStart() int

RedirectStart returning attribute 'redirectStart' with type int (idl: unsigned long long).

func (*Timing) RequestStart

func (_this *Timing) RequestStart() int

RequestStart returning attribute 'requestStart' with type int (idl: unsigned long long).

func (*Timing) ResponseEnd

func (_this *Timing) ResponseEnd() int

ResponseEnd returning attribute 'responseEnd' with type int (idl: unsigned long long).

func (*Timing) ResponseStart

func (_this *Timing) ResponseStart() int

ResponseStart returning attribute 'responseStart' with type int (idl: unsigned long long).

func (*Timing) SecureConnectionStart

func (_this *Timing) SecureConnectionStart() int

SecureConnectionStart returning attribute 'secureConnectionStart' with type int (idl: unsigned long long).

func (*Timing) ToJSON

func (_this *Timing) ToJSON() (_result *javascript.Object)

func (*Timing) UnloadEventEnd

func (_this *Timing) UnloadEventEnd() int

UnloadEventEnd returning attribute 'unloadEventEnd' with type int (idl: unsigned long long).

func (*Timing) UnloadEventStart

func (_this *Timing) UnloadEventStart() int

UnloadEventStart returning attribute 'unloadEventStart' with type int (idl: unsigned long long).

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

Jump to

Keyboard shortcuts

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